comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Convention aspect stricter than before? - GNAT Community 2020
Date: Fri, 7 Aug 2020 22:29:42 -0500	[thread overview]
Message-ID: <rgl678$9u4$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: f71cc789-9be5-4f7a-9e62-fe2cc97ebbe1o@googlegroups.com

"Fabien Chouteau" <fabien.chouteau@gmail.com> wrote in message 
news:f71cc789-9be5-4f7a-9e62-fe2cc97ebbe1o@googlegroups.com...
> On Wednesday, June 3, 2020 at 7:59:04 PM UTC+2, Jesper Quorning wrote:
>> The specification below compiles with CE2019 and GPL2017 but is rejected 
>> by > c_convention_records.ads:5:04: representation item must appear after 
>> type is fully defined
>>
>> Is this expected behaviour?
>
> TM 13.1 (9.1/3) : An operational item that directly specifies an aspect of 
> an entity shall appear before the entity is frozen (see 13.14)
>
> The pragma should be rejected as well actually.

???

I don't see anything in this package specification that freezes any of these 
types (other than "end", but of course that's well after the aspects and 
pragmas are given). Occurrences in a type declaration don't freeze a type 
(if they did, you couldn't mention a private type as a component type at 
all, since a partial view cannot be frozen before it is completed).

In any case, the pragma and aspect should be the same, so there's clearly a 
bug.


                            Randy.


  reply	other threads:[~2020-08-08  3:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 17:59 Convention aspect stricter than before? - GNAT Community 2020 Jesper Quorning
2020-06-03 18:35 ` Jeffrey R. Carter
2020-08-04 13:31 ` Fabien Chouteau
2020-08-08  3:29   ` Randy Brukardt [this message]
2020-08-08  9:46     ` Luke A. Guest
2020-08-10  0:15       ` Randy Brukardt
2020-08-10  6:35         ` Luke A. Guest
2020-08-10  9:15           ` Simon Wright
2020-08-10 14:53             ` Luke A. Guest
2020-08-11  7:18           ` Jesper Quorning
2020-08-11  7:34             ` Luke A. Guest
2020-08-11 16:23               ` Jesper Quorning
2020-08-11 19:23                 ` Luke A. Guest
replies disabled

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