comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Alleged GNAT bug
Date: Tue, 24 Oct 2017 18:08:33 -0500
Date: 2017-10-24T18:08:33-05:00	[thread overview]
Message-ID: <osoh5h$58o$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 2be64a8b-5f89-414c-9dcd-433bd5d855a0@googlegroups.com

"A. Cervetti" <andrea.cervetti@gmail.com> wrote in message 
news:2be64a8b-5f89-414c-9dcd-433bd5d855a0@googlegroups.com...
...
> The ARM is not explicit about this (as far as I know, any language lawyer 
> out there?)
> but the reason of the error is as I said.

That can't be right, because incomplete types aren't frozen; they have their 
own custom set of Legality Rules which is much stronger. (We - the ARG - 
confused ourselves about this for a decade until we gave up and changed back 
to the simple model.)

So the actual error ought to be something in 3.10.1, if the type in 
incomplete.

OTOH, the type is a *partial* view (like a private type), then the freezing 
rules do apply, specifically 13.14(17) or 7.3(5) or 3.11.1(8). The Ada 9x 
team thought this was so important they repeated it three times.

                               Randy.

P.S. I didn't actually look at the program, only the analysis. So the 
analysis could be way wrong. Too sick to take on extra work...



  reply	other threads:[~2017-10-24 23:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20 18:10 Alleged GNAT bug Victor Porton
2017-10-24 10:13 ` A. Cervetti
2017-10-24 23:08   ` Randy Brukardt [this message]
2017-10-25  0:53     ` A. Cervetti
2017-10-25 17:03       ` AdaMagica
2017-10-25 17:27         ` Victor Porton
2017-10-26  7:09           ` AdaMagica
2017-10-26 18:41             ` Victor Porton
2017-11-14 23:35         ` Randy Brukardt
2017-11-16 15:55           ` Robert Eachus
replies disabled

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