This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13490] New: 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: 25 Dec 2003 17:50:49 -0000
- Subject: [Bug fortran/13490] New: Compiler rejects valid constant -2147483648 for 32-bit int
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The attached program compiles and runs correctly with Intel Fortran 95 8.0 and
Lahey Fortran 95 6.1, but generates an error with gfortran. The error is:
In file parambug.f90:5
integer(MY_KIND), parameter :: X = -2147483648
1
Error: Arithmetic overflow at (1)
--
Summary: Compiler rejects valid constant -2147483648 for 32-bit
int
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: coyote at coyotegulch dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux
GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13490