Bug 36382 - Support $ as first character in symbol names and in IMPLICT
Summary: Support $ as first character in symbol names and in IMPLICT
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.4.0
: P3 enhancement
Target Milestone: ---
Assignee: Francois-Xavier Coudert
URL:
Keywords: documentation, patch
Depends on:
Blocks:
 
Reported: 2008-05-29 21:13 UTC by Tobias Burnus
Modified: 2009-05-07 21:50 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-05-03 12:52:38


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2008-05-29 21:13:43 UTC
Found at:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/3228dcee5e3d57c7

Some compilers (such as ifort) allow symbols which start with a $ sign - and they allow IMPLICT with $. gfortran currently does not recognize these.

Solution:
a) Support it as ifort does
b) Document the non-support in the -fdollar-ok documentation.
Comment 1 Francois-Xavier Coudert 2009-05-03 12:52:38 UTC
Doc patch here: http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00078.html

I am against allowing $ as first letter in identifiers, as there now are much better ways to do that (and it's not such a common practice anyway).
Comment 2 Francois-Xavier Coudert 2009-05-07 21:48:31 UTC
Subject: Bug 36382

Author: fxcoudert
Date: Thu May  7 21:48:14 2009
New Revision: 147256

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147256
Log:
	PR fortran/36382
	* invoke.texi: Document that -fdollar-ok does not allow $ to be
	used in IMPLICIT statement.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/invoke.texi

Comment 3 Francois-Xavier Coudert 2009-05-07 21:50:59 UTC
Fixed.