comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nickroberts@adaos.worldonline.co.uk>
Subject: Inner generic package derivation
Date: Fri, 16 Nov 2001 00:00:44 -0000
Date: 2001-11-16T00:00:44+00:00	[thread overview]
Message-ID: <9t1lp3$16unne$2@ID-25716.news.dfncis.de> (raw)

When given the following:

   generic package Test2 is
      type T is abstract tagged limited private;
      procedure P (X: in T) is abstract;
      generic package Inner is
         type U is new T with private;
         procedure Q (X: in T);
      private
         type U is new T with -- error line
            record
               C: Integer;
            end record;
      end Inner;
   private
      type T is abstract tagged limited null record;
   end Test2;

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?

Full detailed explanation welcome (if applicable).

--
Best wishes,
Nick Roberts






             reply	other threads:[~2001-11-16  0:00 UTC|newest]

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

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