comp.lang.ada
 help / color / mirror / Atom feed
* visibility of private incomplete types
@ 2004-10-28 12:03 Georg Bauhaus
  2004-10-28 15:36 ` Martin Dowie
  0 siblings, 1 reply; 11+ messages in thread
From: Georg Bauhaus @ 2004-10-28 12:03 UTC (permalink / raw)


hello,

is GNAT correct in compiling the following program
without complaints? (There is a complaint if the
function in the body of P is uncommented.)

package p is

   package inner is
   private
      type TI;
   end inner;

private
   type TI_Ptr is access constant inner.TI;
end p;

package body p is

   -----------
   -- inner --
   -----------

   package body inner is

      type TI is null record;

   end inner;

--   function test return TI_Ptr is
--   begin
--      return new inner.TI;
--   end test;

end p;


with p; 
procedure p_test is 
begin null; end; 



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

end of thread, other threads:[~2004-12-10  9:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28 12:03 visibility of private incomplete types Georg Bauhaus
2004-10-28 15:36 ` Martin Dowie
2004-10-28 22:19   ` Randy Brukardt
2004-10-29 14:16     ` Nick Roberts
2004-10-29 15:33       ` Frank J. Lhota
2004-10-30  3:13         ` Nick Roberts
2004-11-01  0:40           ` Dr. Adrian Wrigley
2004-12-09 21:21             ` Lionel Draghi
2004-12-10  4:06               ` Alexander E. Kopilovich
2004-12-10  9:23               ` Martin Krischik
2004-10-30  0:36     ` Georg Bauhaus

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