This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16509] New: gfortran rejects "REAL R(2) /2*1.0/"
- From: "billingd at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2004 03:44:48 -0000
- Subject: [Bug fortran/16509] New: gfortran rejects "REAL R(2) /2*1.0/"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following program, derived from a case in the g77 testsuite
is accepted by g77 but not gfortran. I doubt it is standard confirming,
I looked in the Fortran 77 standard but couldn't see the construct.
Another g77 extension to support?
$ cat k.f
REAL R(2) /2*1.0/
END
$ ../gfortran -B.. -O0 -c k.f
In file k.f:1
REAL R(2) /2*1.0/
1
Error: Syntax error in data declaration at (1)
--
Summary: gfortran rejects "REAL R(2) /2*1.0/"
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: billingd at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16509