[patch,4.4, Fortran] PR34997 - Better error message for '$' in name
Tobias Burnus
burnus@net-b.de
Wed Feb 20 14:46:00 GMT 2008
Currently, gfortran returns simply MATCH_ERROR in gfc_match_name if a
symbol contains a $ sign. This gives quite unclear error messages:
Error: Syntax error in data declaration at (1)
Error: Expected = sign in PARAMETER statement at (1)
Error: Syntax error in common block name at (1)
The attached patch changes the message to:
Error: Invalid character '$' at (1). Use -fdollar-ok to accept it
which is clearer and points to the -fdollar-ok flag, which is hard to
find otherwise. (Well, I did not find it ;-)
Bootstrapped and regtested (-m32/-m64, gfortran+gomp) on x86-64-linux.
OK for the trunk?
Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dollar.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080220/29635ebb/attachment.ksh>
More information about the Fortran
mailing list