comp.lang.ada
 help / color / mirror / Atom feed
From: "Mark Lundquist" <up.yerz@nospam.com>
Subject: Re: Inner generic package derivation
Date: Fri, 16 Nov 2001 03:06:10 GMT
Date: 2001-11-16T03:06:10+00:00	[thread overview]
Message-ID: <Co%I7.33638$XJ4.19286091@news1.sttln1.wa.home.com> (raw)
In-Reply-To: 9t1lp3$16unne$2@ID-25716.news.dfncis.de


>
> GNAT 3.12p on Windows 95 gives the error:
>
>    premature derivation of derived or private type
>
> Is this a bug in: (a) GNAT; (b) the RM95; or (c) my brain?

That would be (c)... :-)

>
> Full detailed explanation welcome (if applicable).

See RM 3.4(4).  You get the same error message with this:

package Foo is
    type T1 is private;
    type T2 is new T1;
private
    type T1 is null record;
end Foo;

-- mark






      parent reply	other threads:[~2001-11-16  3:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-16  0:00 Inner generic package derivation Nick Roberts
2001-11-16  0:41 ` Matthew Heaney
2001-11-16  1:54   ` Nick Roberts
2001-11-16  3:06 ` Mark Lundquist [this message]
replies disabled

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