This is the mail archive of the
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 02:32:31 -0000
- Subject: [Bug fortran/33285] integer too big compile error in gfortran
- References: <firstname.lastname@example.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jlaw at uoguelph dot ca 2007-09-03 02:32 -------
(In reply to comment #2)
> The number 2147483648 is too big. The minus sign is a unary operator.
> Either use the compiler option that Jerry mentioned or use 'k = - huge(k) - 1'
option: -fno-range-check is supposed to be the default for the compiler
"In some cases, options have positive and negative forms; the negative form of
-ffoo would be -fno-foo. This manual documents only one of these two forms,
whichever one is not the default.'
It is in 4.1.X, looks like it has changed in 4.2.1
In using this option: 4.2.1 compiles the test code.
This change from the default is NOT documented.