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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9aae240c681f9f62 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news3.google.com!news.germany.com!news.belwue.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 20 Jun 2008 00:48:36 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Defect with formal package parameters References: <78a72b57-bd9f-45b1-bd6c-65bc855cb831@y38g2000hsy.googlegroups.com> In-Reply-To: <78a72b57-bd9f-45b1-bd6c-65bc855cb831@y38g2000hsy.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <485ae245$0$7542$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 20 Jun 2008 00:48:37 CEST NNTP-Posting-Host: 2e9e59bb.newsspool1.arcor-online.net X-Trace: DXC=c20Jic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBh?n0>]NnbYBPCY\c7>ejVH^7laGIE6C^JR:P4ZcMMoWK X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:771 Date: 2008-06-20T00:48:37+02:00 List-Id: Eric Hughes wrote: > GNAT 2008 (just installed) fails to compile the following example, ... > ======================================================= > package Foo is > pragma Elaborate_Body( Foo ) ; > > generic > with procedure Operation is <> ; > package Signature is end ; > > procedure Operation_Actual is null ; > package Impl is new Signature( Operation => Operation_Actual ) ; > > generic > with package S is new Signature( others => <> ) ; > -- with package S is new Signature( <> ) ; > package Module is end ; > > package M is new Module( S => Impl ) ; > end ; > ======================================================= Another workaround: package Foo is pragma Elaborate_Body( Foo ) ; generic with procedure Operation is <> ; package Signature is end ; procedure Operation is null ; package Impl is new Signature ; generic with package S is new Signature( others => <> ) ; package Module is end ; package M is new Module( S => Impl ) ; end ;