From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Elaborate compile-time error messages (was: GNAT Stream Read ...)
Date: 1999/01/13
Date: 1999-01-13T00:00:00+00:00 [thread overview]
Message-ID: <x7vlnj7u0mm.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 77cprt$d90$1@news-hrz.uni-duisburg.de
sb463ba@d250-hrz.uni-duisburg.de (Georg Bauhaus) writes:
> QUESTION 1:
> Why does GNAT behave so very differently when things
> are spelled differently? (Try compiling with "emsg"
> replacing "Emsg" in the above examples.)
I don't know when 3.11p is coming out, but 3.10p handles these cases
identically:
pogner[17]$ gcc -c -gnatc -gnatv emsg.ads
GNAT 3.10p (970814) Copyright 1992-1997 Free Software Foundation, Inc.
Checking: emsg.ads (source file time stamp: 1999-01-13 06:45:32)
2. n : integer := Private;
|
>>> reserved word "private" cannot be used as identifier
3 lines: 1 error
and
pogner[19]$ gcc -c -gnatc -gnatv emsg.ads
GNAT 3.10p (970814) Copyright 1992-1997 Free Software Foundation, Inc.
Checking: emsg.ads (source file time stamp: 1999-01-13 06:48:50)
2. n : integer := private;
|
>>> reserved word "private" cannot be used as identifier
3 lines: 1 error
also
pogner[20]$ gnatf -v -ds emsg.ads
GNATF 3.10p (970814) Copyright 1992-1997 Free Software Foundation, Inc.
Checking: emsg.ads (source file time stamp: 1999-01-13 06:48:50)
Source recreated from tree for emsg (spec)
------------------------------------------
package emsg is
n : integer := private;
end emsg;
2. n : integer := private;
|
>>> reserved word "private" cannot be used as identifier
3 lines: 1 error
next prev parent reply other threads:[~1999-01-13 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-05 0:00 GNAT Stream Read processing problem Bruce Detter
1999-01-05 0:00 ` Tom Moran
1999-01-05 0:00 ` Bruce Detter
1999-01-06 0:00 ` dewar
1999-01-06 0:00 ` Matthew Heaney
1999-01-06 0:00 ` Bruce Detter
1999-01-06 0:00 ` Elaborate compile-time error messages (was: GNAT Stream Read ...) Larry Kilgallen
1999-01-06 0:00 ` Marin David Condic
1999-01-11 0:00 ` Georg Bauhaus
1999-01-13 0:00 ` Simon Wright [this message]
1999-01-06 0:00 ` bourguet
1999-01-07 0:00 ` dewar
1999-01-07 0:00 ` Larry Kilgallen
1999-01-10 0:00 ` robert_dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox