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,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,12eefe849df97d15 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 16 Dec 2009 16:54:15 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Visibility of package parameters in child packages References: <4b27f8e9$0$6591$9b4e6d93@newsspool3.arcor-online.net> <02e4d172-0eb9-4c2a-ac0f-68e151916d59@o19g2000vbj.googlegroups.com> <4b28dd43$0$6586$9b4e6d93@newsspool3.arcor-online.net> <06a89bbe-6b1d-4996-b699-8da81bc6806a@m11g2000vbo.googlegroups.com> In-Reply-To: <06a89bbe-6b1d-4996-b699-8da81bc6806a@m11g2000vbo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4b2902a7$0$7633$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 16 Dec 2009 16:54:15 CET NNTP-Posting-Host: b6e4fe9b.newsspool1.arcor-online.net X-Trace: DXC=na<:[26e0Qh_0Po7BmQ3]lic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbHbm@c@?m5gmnc\616M64>jLh>_cHTX3jm_gjkJdN[neg X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8401 Date: 2009-12-16T16:54:15+01:00 List-Id: Andrea Taverna schrieb: > On 16 Dic, 14:14, Georg Bauhaus wrote: >> Andrea Taverna schrieb: >> >>> and the compiler replied >>> -----%<-----%<-----%<-----%<-----%< >>> ]# gnatmake main.adb >>> gcc -c main.adb >>> main.adb:9:05: instantiation error at parent-child.adb:6 >>> main.adb:9:05: "F" is not visible (more references follow) >>> main.adb:9:05: instantiation error at parent-child.adb:6 >>> main.adb:9:05: non-visible declaration at q.ads:3 >>> gnatmake: "main.adb" compilation error >>> -----%<-----%<-----%<-----%<-----%< >>> Am I missing something? >> It's not a "use" issue I think. P.F is marked invisible, >> too. > I'm not sure I understand you correctly here, however P.F *is* > visible, in fact the compiler stops complaining after prefixig P's > name to F. My mistake, sorry. (I had forgotton to prefix the other F.) Is the question then whether or not "use" of a generic formal package extends to the formal parameters of the generic formal package (a formal package with a (<>))? My best guess would be to start from Ada 95 12.7(10), if that still applies, but I simply don't know, and I don't have my other compiler handy which might give a more detailed error message.