This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27698] subroutine _foo draws "unclassifiable statement" instead of a useful error.
- From: "aldot at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2006 17:16:38 -0000
- Subject: [Bug fortran/27698] subroutine _foo draws "unclassifiable statement" instead of a useful error.
- References: <bug-27698-109@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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