comp.lang.ada
 help / color / mirror / Atom feed
* Inner generic package derivation
@ 2001-11-16  0:00 Nick Roberts
  2001-11-16  0:41 ` Matthew Heaney
  2001-11-16  3:06 ` Mark Lundquist
  0 siblings, 2 replies; 4+ messages in thread
From: Nick Roberts @ 2001-11-16  0:00 UTC (permalink / 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






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-16  3:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox