------- Comment #9 from kargl at gcc dot gnu dot org 2010-03-13 03:52 ------- (In reply to comment #8) > Maybe we just need to document that -pedantic changes the range of integers to > be what the Fortran standard requires (a symmetric range).
The Fortran Standard requires neither a symmetric nor asymmetric range. It simply requires that a program(mer) cannot invoke an intrinsic procedure that will return an out-of-range value. program one integer i i = not(1) end program one is a valid Fortran 95 program if INTEGER has the range [-huge()-1:huge()] (assuming a twos complement system). If the range is, however, [-huge():huge()], then it is an invalid program. Guess what happen when the stupid option -pedantic is used? It changes the range, and this behavior is completely conforming. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43310