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,f941a4f4283a000c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Interesting and possible buggy behavior in GNAT regarding Annex E pragmas. Date: Wed, 25 May 2011 22:21:58 +0200 Organization: A noiseless patient Spider Message-ID: <87r57m8ra1.fsf@ludovic-brenta.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="JSLqCsGCOiGduXbzx6571A"; logging-data="16509"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DiWJ19VOSGaRrZW2S4k2g" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:UBwMplxZzR9fkNpEF7d7ssFmPBg= sha1:E6E6M3NCod9Aciaun9rmU9c7x3Q= Xref: g2news2.google.com comp.lang.ada:20450 Date: 2011-05-25T22:21:58+02:00 List-Id: Shark8 writes on comp.lang.ada: > Hi everyone. > I was experimenting with partitioning-pragmas trying to decide on a > good way to set up my PostScript interpreter so that the parser could > be a remote object possibly servicing multiple clients and I came > across a possible bug that is bothering me. In certain instances using > one of the pragmas will cause the compiler to error-out, as is > expected, but in other cases the compiler does not error out. > > The only way I can see this happening is if, by WITH-ing these > children units, the parent units are LIMITED WITH-ed; but that is > counter-intuitive and does not allow for USES (which still compile) of > the parent unit. > > I have reduced things to the minimal compilable example and the source > is as follows: I've been able to reproduce this with gnat-4.4 (=4.4.6-1) on Debian unstable. This looks like a genuine bug to me; please report it on http://gcc.gnu.org/bugzilla/. What version of GNAT are you using? -- Ludovic Brenta.