From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: Full view of limited extension?
Date: Tue, 18 Oct 2016 18:22:56 +0300
Date: 2016-10-18T18:22:56+03:00 [thread overview]
Message-ID: <nu5ene$4ml$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: <121792c4-3f9d-4d89-8ac5-88375ffb1110@googlegroups.com>
Hi,
18.10.2016, 9.24, Maciej Sobczak wrote:
> Consider file test.ads:
>
> with Ada.Finalization;
>
> package Test is
>
> type Parent is limited interface;
>
> type Child is limited new Parent with private;
>
> private
>
> type Child is
> new Ada.Finalization.Limited_Controlled
> and Parent with record
> I : Integer;
> end record;
>
> end Test;
>
> The problem is (GNAT 5.4.0):
>
> $ gcc -c test.ads
> test.ads:11:04: full view of limited extension must be explicitly limited
>
> The "limited" keyword is already everywhere, there are no more places to put it. :-) Am I missing some dark language corners here?
This issue has interesting story:
GNAT didn't have the check until about two years ago.
I was testing your code (YAMI) and noticed that Irvine ICCAda
complained about the code, but GNAT accepted it. So, I went
and filed a bug about it to Adacore:
https://groups.google.com/d/msg/comp.lang.ada/y2FvCsze8AI/ptml4ftJy98J
I happily forgot to do the last step:
Report the problem to YAMI author (you), but apparently
you finally found it by yourself! ;)
Yours,
Tero
next prev parent reply other threads:[~2016-10-18 15:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-18 6:24 Full view of limited extension? Maciej Sobczak
2016-10-18 7:22 ` G.B.
2016-10-18 7:30 ` Vratislav Podzimek
2016-10-18 15:22 ` Tero Koskinen [this message]
2016-10-20 0:40 ` Randy Brukardt
2016-10-26 13:36 ` Maciej Sobczak
2016-10-26 21:02 ` Randy Brukardt
2016-10-26 21:08 ` Randy Brukardt
2016-10-27 7:56 ` Maciej Sobczak
2016-10-29 4:06 ` Coyo T Stormcaller
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox