[Bug fortran/25297] New: Support for STRUCTURE/END STRUCTURE and RECORD
martinol at nrlssc dot navy dot mil
gcc-bugzilla@gcc.gnu.org
Wed Dec 7 17:16:00 GMT 2005
>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
More information about the Gcc-bugs
mailing list