This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29814] New: integer assignment in hexadecimal fails
- From: "vahtras at pdc dot kth dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2006 11:21:01 -0000
- Subject: [Bug fortran/29814] New: integer assignment in hexadecimal fails
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
INTEGER*4 :: MASK1 = Z'FFFFFFFF'
PRINT *,MASK1
END
compiles and produces "-1" with g77 (as it should) while gfortran reports
In file err.f:1
INTEGER*4 :: MASK1 = Z'FFFFFFFF'
1
Error: Arithmetic overflow converting INTEGER(8) to INTEGER(4) at (1)
Olav
--
Summary: integer assignment in hexadecimal fails
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vahtras at pdc dot kth dot se
GCC build triplet: powerpc-apple-darwin8.8.0
GCC host triplet: powerpc-apple-darwin8.8.0
GCC target triplet: powerpc-apple-darwin8.8.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29814