------- Comment #13 from kargl at gcc dot gnu dot org 2010-03-17 22:26 ------- (In reply to comment #11) > > Well, the number model is symmetric. See Fortran 2003 ... > > I agree, but it is a very pedantic view that should at least be mentioned in > the manual.
You forgot to attach your patch. > Now I think the implementation is not consistent: > > [macbook] f90/bug% cat > ishft_1.f90 > print *, ishft(1,31) > end > [macbook] f90/bug% gfc -Wall -pedantic ishft_1.f90 > [macbook] f90/bug% a.out > -2147483648 gfc_simplify_ishft doesn't range check its result. Patch welcomed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43310