http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48303
Summary: [Legacy] Support Character constants in DATA statement
for non-character variables
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
Reported on freenode's #fortran.
The following program uses:
DATA ZERO,ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT,
& RNINE,TEN/'-','1','2','3','4','5','6','7','8','9','T'/
which almost all my compilers accept as vendor extension; however, gfortran
only accepts Hollerith constants (even more common vendor extension) in DATA:
DATA ZERO,ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT,
& RNINE,TEN/1H-,1H1,1H2,1H3,1H4,1H5,1H6,1H7,1H8,1H9,1HT/
Expected: As -std=legacy extension, also accept in DATA character literals.
The full program is the first one in the list at
http://www.netl.doe.gov/technologies/oil-gas/software/simulat.html