From: Georg Bauhaus <sb463ba@uni-duisburg.de>
Subject: visibility of private incomplete types
Date: Thu, 28 Oct 2004 14:03:47 +0200
Date: 2004-10-28T16:00:01+02:00 [thread overview]
Message-ID: <4180fb61$0$20941$9b4e6d93@newsread2.arcor-online.net> (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;
next reply other threads:[~2004-10-28 12:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-28 12:03 Georg Bauhaus [this message]
2004-10-28 15:36 ` visibility of private incomplete types 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox