This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/14055] New: [gfortran] Constants with a leading + in DATA are always zero
- From: "bdavis9659 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2004 01:57:29 -0000
- Subject: [Bug fortran/14055] New: [gfortran] Constants with a leading + in DATA are always zero
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The below data statements do not initialize the variables:
DATA IVON06,IVON07,IVON08,IVON09,IVON10/+3,+76,+587,+9999,+21111/
PRINT*,IVON06,IVON07,IVON08,IVON09,IVON10
END
$ /usr/local/bin/gfortran -g -static FM007.FOR
$ ./a.out
0 0 0 0 0
$ g77 -g -static FM007.FOR
$ ./a.out
3 76 587 9999 21111
$
/usr/local/bin/gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040206 (merged 20040126))
Copyright (C) 2003 Free Software Foundation, Inc.
--
Summary: [gfortran] Constants with a leading + in DATA are
always zero
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bdavis9659 at comcast dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14055