This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24337] Syntax error in data declaration
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2005 20:41:33 -0000
- Subject: [Bug fortran/24337] Syntax error in data declaration
- References: <bug-24337-8649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from kargl at gcc dot gnu dot org 2005-10-12 20:41 -------
The final committe draft of the Fortran 95 standard (and the
final coimmitte draft of Fortran 2003 is essentially the same) has
3.2.1 Names
Names are used for various entities such as variables, program units, dummy
arguments, named constants, and derived types.
R304 name is letter [ alphanumeric-character ] ...
Constraint: The maximum length of a name is 31 characters.
letter is defined in 3.1.1
gfortran is doing the right thing. I submitted your code the Lahey's
conformance checking utility and it claims
Compiling program unit test_name at line 1:
1641-S: "SOURCE.F90", line 2, column 15: The first character of name '_var'
must not be _.
1110-S: "SOURCE.F90", line 2, column 15: Missing name.
Encountered 2 errors, 0 warnings, 0 informations in file SOURCE.F90.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24337