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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Referring to the instance of a generic parent package Date: Wed, 23 Oct 2019 17:55:08 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 23 Oct 2019 15:55:08 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="8dbbf3396e0ffe11cddb6d05d833e0ea"; logging-data="3062"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Q5kOFKGwf/DWNhFnU6zUyALr4/mLsX28=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cancel-Lock: sha1:2AAgfg7UPRRllNKXflKzYL4komI= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57333 Date: 2019-10-23T17:55:08+02:00 List-Id: On 10/23/19 2:54 PM, Alejandro R. Mosteo wrote: > I have the following situation: > >    generic >    package Parent is ... end Parent; > >    generic >       with package P is new Parent (<>); >    package Sibling is ... end Sibling; > >    generic >    package Parent.Child is > >       package A_Sibling is new Sibling (Parent); >       --  Works in GNAT CE 2019 >       --  Error in FSF 7.4: >       --    "Expect package instance to instantiate formal" > >    end Parent.Child GNAT 9.1.0 also gives this error. -- Jeff Carter "Go and boil your bottoms." Monty Python & the Holy Grail 01