This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13490] [gfortran] Compiler rejects valid constant -2147483648 for 32-bit int
- From: "coyote at coyotegulch dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2003 19:01:30 -0000
- Subject: [Bug fortran/13490] [gfortran] Compiler rejects valid constant -2147483648 for 32-bit int
- References: <20031225175047.13490.coyote@coyotegulch.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From coyote at coyotegulch dot com 2003-12-26 19:01 -------
gfortran is behaving correctly according to the Standard.
In reflection of interoperability needs, I've posted a patch to pcc-patches that
implements a new flag, -fasymmetrical-integers. This flag tells gfortran to
accept integers in the range [-n-1,n], whereas the standard requires the range
[-n,n].
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13490