From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8dc50f1b24590126,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Thu, 28 Oct 2004 14:03:47 +0200 From: Georg Bauhaus User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: visibility of private incomplete types Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4180fb61$0$20941$9b4e6d93@newsread2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 28 Oct 2004 16:00:01 MEST NNTP-Posting-Host: 17b2b9a3.newsread2.arcor-online.net X-Trace: DXC=@Mgma;U1L6JbkXRh2MA`7OQ5U85hF6f;DjW\KbG]kaMHA@_25la3nbBWcD6oTfb^4H:n9G[MMWD:DMC0]gXPTF0BbWoWITGh6mH X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:5798 Date: 2004-10-28T16:00:01+02:00 List-Id: 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;