This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Increase maximum identifier length


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 07 January 2004 23:31, Paul Brook wrote:
> On Wednesday 07 January 2004 10:23 pm, Erik Schnetter wrote:
> > On Wednesday 07 January 2004 23:19, Steven Bosscher wrote:
> > > On Tuesday 06 January 2004 00:57, Erik Schnetter wrote:
> > > > In Fortran 2k3, the maximum length of an indentifier is 63
> > > > (C301).
> > >
> > > I like the idea, but I think we should have a switch to disable
> > > this in pedantic mode.
> >
> > The maximum identifier length is currently a #define, hence cannot
> > be set by a switch.  The switch is probably best implemented as an
> > additional check in certain places (but I wouldn't know which
> > ones).
>
> fortran$ grep "Name.*is too long" * -n
> match.c:399:      gfc_error ("Name at %C is too long");

Okay.  And what is the limit for Fortran 77?  (Wasn't there support for 
different language versions being added?  The pedantic limit should 
then depend on the language version.)  I know that externally visible 
names had to differ in their first 6 characters.  But were internal 
names allowed to be longer?

Apart from that -- isn't it more important to be able to compile 
standard compliant Fortran 2k3 programmes than to diagnose 
non-complying Fortran 90 programmes in pedantic mode?

- -erik

- -- 
Erik Schnetter <schnetter@aei.mpg.de>   http://www.aei.mpg.de/~eschnett/

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQE//Iuwm3uiSwno3f0RAtUIAJ9IZms+1rZl/xmWKFwGQ5BxMVjbogCcD45c
0a8nxGc8UHxCkb8ow2IJmxU=
=jFwS
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]