------- Comment #10 from aldot at gcc dot gnu dot org 2006-11-05 17:16 ------- > IIRC, the use of $ is a Digital extension on VMS. It's > been more than 15 years since I used VMS, but I vaguely > remmeber seeing Fortran with the $ only in the 2nd position. > > But, if Intel (a Digital descented) accepts the leading > dollar sign, then your suggested modification is probably > correct. >
According to http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlf101l.doc/xlfopg/extnames.htm the XL fortran accepts " Both the underscore (_) and the dollar sign ($) are valid characters anywhere in names. " While we currently have -fdollar-ok to accept the (invalid !) use of '$' in a name, we don't provide means to accept (invalid !) names with a leading underscore. This would of course only serve compatibility to IBM's xlf and, perhaps, other compilers. Disallowing a dollar sign as the very first character in a name even if -fdollar-ok was requested by the user seems to be a simple omission to me. Whether we want to allow for such invalid code for compatibility is beyond my judgement, though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27698