comp.lang.ada
 help / color / mirror / Atom feed
From: porton@ex-code.com (Victor Porton)
Subject: Bug in GNAT?
Date: Sat, 09 Nov 2002 11:56:12 +0500
Date: 2002-11-09T07:58:28+00:00	[thread overview]
Message-ID: <3dccc024$0$307$bed64819@news.gradwell.net> (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
:-)



             reply	other threads:[~2002-11-09  6:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09  6:56 Victor Porton [this message]
2002-11-09  9:43 ` Bug in GNAT? 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
replies disabled

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