This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25297] New: Support for STRUCTURE/END STRUCTURE and RECORD
- From: "martinol at nrlssc dot navy dot mil" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2005 17:16:10 -0000
- Subject: [Bug fortran/25297] New: Support for STRUCTURE/END STRUCTURE and RECORD
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
>From an old SGI Fortran-77 Language Reference Manual:
"The RECORD statement creates a record in the format specified by a previously
declared STRUCTURE statement. The effect of a RECORD statement is comparable
to that of an ordinary type declaration."
"The STRUCTURE statement defines a record structure that can be referenced by
one or more RECORD statement."
An example from the same manual:
STRUCTURE /WEATHER/
INTEGER MONTH, DAY, YEAR
CHARACTER*80 CLOUDS
REAL RAINFALL
END STRUCTURE
RECORD /WEATHER/ LATEST, PAST(1000)
past(n).rainfall = latest.rainfall
Documentation of other Fortan Compilers that
support STRUCTURE/RECORD. This could be implemented
as an 'GNU extension' with respect to -std=.
Portland Compiler:
http://www.pgroup.com/resources/docs.htm
SGI F77 Reference Manual:
http://techpubs.sgi.com/library/tpl/cgi-bin/browse.cgi?coll=0650&db=bks&cmd=toc&pth=/SGI_Developer/F77_RM
Absoft Fortran Compiler:
http://www.absoft.com/Products/Compilers/Fortran/Linux/AMD64/Linux64.html#documentation
--
Summary: Support for STRUCTURE/END STRUCTURE and RECORD
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martinol at nrlssc dot navy dot mil
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25297