This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/33285] integer too big compile error in gfortran



------- Comment #3 from jlaw at uoguelph dot ca  2007-09-03 01:50 -------
(In reply to comment #1)
> This is assuming that an asymmetric range is permitted in Fortran which I think
> it is not.  You can use -fno-range-check to disable this check.
> 

In the IBM XL Fortran 90 manual:
pg 19
I quote: for Integer Kind parameter 4 range of value "-2147483648 through to
2147483647"
namely  -(2^31) to (2^31 -1)

Compiling this using gcc-gfortran-4.1.X and gcc-g77-3.X
works

It is a Fortran standard!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33285


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]