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/13826] New: Derived types in DATA statements not PARAMETERs


I installed G95 Download x86 Linux Binary (01/21/04) and observed what I think
may be an error in G95.

Attached to this messege is the source code to a fairly small program which
simply prints out common scientific and mathematical constants (foo.f90).

Also attached is the output of the program when compiled with the NAG FORTRAN
90/95 (v4.2) compiler (foo.f90.nag.out).  NAG compiles the program without
warning nor error.


G95 fails to compile and produces the following error:

 In file foo.f90:138
 
     & ConstantT('ELECTRON_VOLT',  'au / eV',          &
               1
Error: Symbol 'constantt' must be a PARAMETER in DATA statement at (1)



Apparently it doesn't like derived types within a DATA statement?  That's how I
interpret it.

I'm not finding a button at the moment to attach a file... I'll submit this now
and perhaps one will appear... if not, I'll include the raw files as additional
comments.

-- 
           Summary: Derived types in DATA statements not PARAMETERs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giese025 at tc dot umn dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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