public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13826] New: Derived types in DATA statements not PARAMETERs
@ 2004-01-23  6:22 giese025 at tc dot umn dot edu
  2004-01-23  6:24 ` [Bug fortran/13826] " giese025 at tc dot umn dot edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: giese025 at tc dot umn dot edu @ 2004-01-23  6:22 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-05-15 20:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-23  6:22 [Bug fortran/13826] New: Derived types in DATA statements not PARAMETERs giese025 at tc dot umn dot edu
2004-01-23  6:24 ` [Bug fortran/13826] " giese025 at tc dot umn dot edu
2004-01-23  6:25 ` [Bug fortran/13826] [gfortran] " pinskia at gcc dot gnu dot org
2004-01-23  6:26 ` giese025 at tc dot umn dot edu
2004-01-25 17:44 ` dhazeghi at yahoo dot com
2004-04-26  5:20 ` pinskia at gcc dot gnu dot org
2004-05-12 15:52 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-16 20:30 ` cvs-commit at gcc dot gnu dot org
2004-05-16 20:43 ` cvs-commit at gcc dot gnu dot org
2004-05-16 21:42 ` tobi at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).