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/16508] gfortran rejects "DATA R /2*(-1)/"


------- 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


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