------- Comment #1 from burnus at gcc dot gnu dot org  2007-02-20 17:00 -------
gfortran:

  DATA (a(i),i=1,D1%I) /D1%I*D1%I/
                         1
Error: Syntax error in DATA statement at (1)

That is: compounds of derived types with parameter attribute are not possible
as data-stmt-value in gfortran.

ifort, g95 and nagf95 compile this program.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-20 17:00:22
               date|                            |
            Summary|incorrect error message for |Syntax error for derived
                   |valid code                  |type's compounds in a data-
                   |                            |stmt-value-set


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30879

Reply via email to