f77 compile treats "\" as special.

Dave Love d.love@dl.ac.uk
Wed Sep 9 13:25:00 GMT 1998


>>>>> "Tim" == Tim Prince <N8TM@aol.com> writes:

 Tim> In a message dated 9/8/98 10:46:52 AM Pacific Daylight Time,
 Tim> d.ingamells@siep.shell.com writes:

 >> 
 >> DATA ITAB/2H\1/
 >> 
 >> does not compile.

It does with an appropriate flag.  The relevant index entry is `backslash'.

 Tim> that doesn't look like legal Fortran code according to any past
 Tim> or present standard. The nH notation was specifically obsoleted
 Tim> at Fortran 77, and backslash wasn't in the f66 supported
 Tim> character set.

Yes, but.  g77 supports Hollerith and documents its character set to
include backslash; it's just that it changed the default treatment of
it at some stage for compatibility.  [The f77 standard does have an
appendix on the `deleted' Hollerith data type as an extension.]



More information about the Gcc-bugs mailing list