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: border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Elaboration order handling (Was: Bug in 'gnatmake') Date: Wed, 19 Jun 2013 23:08:46 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <7f33982d-3bcf-452e-a3b3-3a0a28505ff1@x20g2000vbe.googlegroups.com> <87r4g0g9c0.fsf@adaheads.sparre-andersen.dk> <87ip1bg4z2.fsf_-_@adaheads.sparre-andersen.dk> <53d0b070-a03b-43d0-a560-68dd3a8bebf5@googlegroups.com> <51c218df$0$6623$9b4e6d93@newsspool2.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 20 Jun 2013 06:03:43 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="ea9e222491b6e4ac16c72e6c1b727e42"; logging-data="4408"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OFC8JzCpBVJ0qdkJdh7CuINmkJEFS89Q=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:xEmjZjiKdKVYnjrpEvQqVDORrP0= X-Original-Bytes: 2365 Xref: number.nntp.dca.giganews.com comp.lang.ada:181977 Date: 2013-06-19T23:08:46-07:00 List-Id: On 06/19/2013 07:29 PM, Adam Beneschan wrote: > > It's legal Ada (and should run without raising Program_Error). It looks like > http://docs.adacore.com/gnat-unw-docs/html/gnat_ugn_36.html, especially C.10, > discusses this sort of situation, but I don't know if you looked there > already. No, I hadn't. Thanks for pointing it out. I'd always tried to fix this using "pragma Elaborate[_All]" in the context clauses, which always failed. I hadn't considered the effect of putting "pragma Elaborate_Body" in the spec of A. With that, I can get it to build. -- Jeff Carter "Now go away or I shall taunt you a second time." Monty Python & the Holy Grail 07