This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/14055] New: [gfortran] Constants with a leading + in DATA are always zero


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]