This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33285] integer too big compile error in gfortran
- From: "jlaw at uoguelph dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2007 01:50:49 -0000
- Subject: [Bug fortran/33285] integer too big compile error in gfortran
- References: <bug-33285-15053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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