From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: Accessibility and possible Gnat bug
Date: Fri, 19 Dec 2014 19:34:16 +0200
Date: 2014-12-19T19:34:16+02:00 [thread overview]
Message-ID: <m71nir$oib$1@loke.gir.dk> (raw)
In-Reply-To: <m71gk7$5es$1@speranza.aioe.org>
19.12.2014, 17:35, Michael B. kirjoitti:
> In the previous discussion about accessibility I was pointed to the
> paper "Accessibility rules OK!" of John Barnes (ACM SIGAda Ada Letters
> Volume XV Issue 1, Jan./Feb. 1995) which contains the following example:
>
> procedure Example6 is
...
> P1(Z'Access); -- Raises Program_Error.
...
> end Example6;
>
> In the paper the program is expected to run without errors.
> I compiled it with Gnat 4.9 on Debian 8.0, ran it and got an
> Program_Error on the marked line.
>
> Is this correct in Ada 2012 or not? I would like to hear your opinion
> about that before I write a possibly unnecessary bug report to AdaCore.
I don't know what the standard actually says, but Irvine ICCAda
generates executable, which does not raise exception when
the code is compiled in Ada 2005 mode.
Also, Janus/Ada generates executable, which does not raise exception,
when Janus/Ada uses Ada 95 mode.
GNAT GPL 2013 always generates executable, which raises exception.
(Tested with -gnat95 and -gnat2012 flags).
Yours,
Tero
next prev parent reply other threads:[~2014-12-19 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-19 15:35 Accessibility and possible Gnat bug Michael B.
2014-12-19 17:34 ` Tero Koskinen [this message]
2014-12-20 14:17 ` Michael B.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox