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: "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: 14 Jul 2004 00:49:17 -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 billingd at gcc dot gnu dot org 2004-07-14 00:49 -------
I think this is invalid fortran, by my reading of:
- Fortran 77 ANSI X3.9-1978 Section 9.1
- Fortran 200x ISO/IEC FCD 1539-1:2004(E)
The values in a DATA statement must be constants, and (-1) is
constant expression but not a constant.
gfortran should reject this construct, so this is not a bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16508