comp.lang.ada
 help / color / mirror / Atom feed
* Bug in GNAT?
@ 2002-11-09  6:56 Victor Porton
  2002-11-09  9:43 ` Michal Nowak
  2002-11-09 10:01 ` Victor Porton
  0 siblings, 2 replies; 6+ messages in thread
From: Victor Porton @ 2002-11-09  6:56 UTC (permalink / raw)


GNAT-3.14p compiles the following without error-messages.
Is it a bug in GNAT or in Ada Standard?

function F(A: Integer) return Integer is begin return 1; end;
Y: Integer renames F(3);

Seemingly GNAT parser "thinks" that F(3) is an array element
:-)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-11-09 15:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-09  6:56 Bug in GNAT? Victor Porton
2002-11-09  9:43 ` Michal Nowak
2002-11-09 10:01 ` Victor Porton
2002-11-09 12:26   ` Michal Nowak
2002-11-09 15:26   ` David C. Hoos, Sr.
2002-11-09 15:31   ` Robert A Duff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox