------- Comment #1 from kargl at gcc dot gnu dot org 2006-10-24 14:47 ------- It is not a bug. "i = - 2147483648" is a unary minus operation on the number 2147483648. This number overflows the range. If you want the most negative number for an integer use "i = - huge(i) - 1".
I've already pointed you the to the commit that fixed range checking. There is a very long email in the fortran@ mailing list that explains the problem and why it was fixed. -- kargl at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29580