In the gfortran version of 20060914 it was still legal to use the integer value -2147483648 for 4 byte (kind=4) integers. In the gfortran version of 20061023 this seems no longer possible, I get the compilation error: Error: Integer too big for its kind at (1)
Does this mean the integer numbers have changed from asymmetric to symmetric definition? If so, is there a commandline switch to choose between the two? I do know that the -fno-range-check option suppresses this error (and the sample code below works correct with it), but I really don't understand why this number should be out of range, so I believe this is a bug. This sample code demonstrates the issue: program bla integer :: i i=-2147483648 print *,"i=",i end program bla -- Summary: integer -2147483648 out of range: bug or feature? Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kloedej at knmi dot nl http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29580