------- Comment #5 from burnus at gcc dot gnu dot org 2007-08-06 13:06 ------- > The numbers are 32-bit, so why an overflow? huge(0): 2147483647 ! biggest (positive) number fitting into integer(4) Z'FFFFFFFF': 4294967295
I would argue that 4294967295 is bigger than 2147483647. If one allows the overflow or regards it as bit pattern, one obtains "-1". This is also what one gets for -fno-range-check. The program is simply invalid though as vendor extension many compilers allow it. One can discuss about the default behaviour in gfortran [write to the mailing list and not here], but the current behaviour has some merits, though I think one should point to the option which allows the compilation (see patch in comment #2). ------------- (In reply to comment #4) > d1mach.f:2: fatal error: gfc_todo: Not Implemented: Initialization of > overlapping variables This was fixed meanwhile. gfortran 4.3 does not have this error any more. 4.3 binaries are available at: http://gcc.gnu.org/wiki/GFortranBinaries -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33001