comp.lang.ada
 help / color / mirror / Atom feed
* Discriminant ans tagged type ?!
@ 2008-03-18 15:22 Tony
  2008-03-18 15:54 ` Adam Beneschan
  2008-03-18 18:40 ` Robert A Duff
  0 siblings, 2 replies; 9+ messages in thread
From: Tony @ 2008-03-18 15:22 UTC (permalink / raw)


I just do not understand why the following code compiles with the Aonix 
compiler and not with the Gnat GPL 2007?

     package A_Pkg is
         type A (L : Natural) is tagged null record;
     end A_Pkg;

     package A_Pkg.B_Pkg is
         type B is new A with record
             T : String(1..L);
         end record;
     end A_Pkg.B_Pkg;

     with A_Pkg.B_Pkg;
     procedure Strange is
     begin
         null;
     end Strange;

    => RM95 3.7 (18) ??



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

end of thread, other threads:[~2008-04-04 15:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18 15:22 Discriminant ans tagged type ?! Tony
2008-03-18 15:54 ` Adam Beneschan
2008-03-18 19:54   ` Adam Beneschan
2008-03-21  8:18     ` Tony
2008-03-21 15:25       ` Adam Beneschan
2008-03-21 16:46         ` Simon Wright
2008-03-22  9:05         ` Tony
2008-04-04 15:40           ` Tom Grosman
2008-03-18 18:40 ` Robert A Duff

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