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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4200259190b16e16,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-27 07:42:40 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: petter.fryklund@atero.se (Petter Fryklund) Newsgroups: comp.lang.ada Subject: Visibility problems with package instantiations..... Date: 27 Nov 2003 07:42:40 -0800 Organization: http://groups.google.com Message-ID: <95234e08.0311270742.631b1228@posting.google.com> NNTP-Posting-Host: 138.14.239.132 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1069947760 26845 127.0.0.1 (27 Nov 2003 15:42:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 27 Nov 2003 15:42:40 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2994 Date: 2003-11-27T07:42:40-08:00 List-Id: We have the following: generic type A is mod (<>); type B is mod (<>); package Gen_0 is type C is record AA : A; BB : B; end record; end Gen_0; with Gen_0; generic with package Inst_0 is new Gen_0 (<>); package Gen_1 is procedure X (P1 : Inst_0.C); end Gen_1; with Gen_0; generic with package Inst_0 is new Gen_0 (<>); with package Inst_1 is new Gen_1 (<>); package Gen_2 is procedure X (P1 : Inst_0.C); end Gen_2; package body Gen_2 is procedure X (P1 : Inst_0.C) is begin Inst_1 (P1); <---- visibility problems. end X; end Gen_2; procedure Main is package Inst_0 is new Gen_0 (Interfaces.Unsigned_16, Interfaces.Unsigned_16); package Inst_1 is new Gen_1 (Inst_0); package Inst_2 is new Gen_2 (Inst_0, Inst_1); begin Inst_2.X ... Why?