This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16508] gfortran rejects "DATA R /2*(-1)/"
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2004 04:46:39 -0000
- Subject: [Bug fortran/16508] gfortran rejects "DATA R /2*(-1)/"
- References: <20040713034023.16508.billingd@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2004-07-13 04:46 -------
This appears to be invalid code. Both NAG's compiler and
ftnchek flag this as an error.
kargl[211] ftnchek a.f
FTNCHEK Version 3.2 November 2002
File a.f:
2 DATA R /2*(-1)/
^
Error near line 2 col 18 file a.f: parse error, unexpected '('
(A parse error means that I am not able to make sense of this statement,
because your program has broken some rule of Fortran syntax.)
3 END
Warning near line 3 file a.f: Module contains no executable statements
Warning in module %MAIN in file a.f: Variables set but never used:
R set at line 2 file a.f
1 syntax error detected in file a.f
2 warnings issued in file a.f
kargl[212] f95 -dusty -o a a.f
Error: a.f, line 2: syntax error
detected at 1@)
***Malformed statement
Warning: a.f, line 3: Local variable R is initialised but never used
detected at END@<end-of-statement>
[f95 terminated - errors found by pass 1]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16508