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!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Bounded String question Date: Thu, 12 Nov 2015 15:29:00 -0600 Organization: JSA Research & Innovation Message-ID: References: <7ba56b33-28d4-42d2-8b9b-5ad9f5beab8b@googlegroups.com> <87io597447.fsf@theworld.com> <66278720-249a-4191-a908-bb840e7f3ccc@googlegroups.com> <6d874e75-e2c9-47e9-b394-f04052f10aa3@googlegroups.com> <1a532527-f48c-4646-abb5-ec64b5e6106b@googlegroups.com> <2573827f-78e1-4554-a57e-11d3cb977c44@googlegroups.com> <62d6cec4-14b9-4d5c-b3bd-ccd7c9ea410d@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1447363741 19075 24.196.82.226 (12 Nov 2015 21:29:01 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 12 Nov 2015 21:29:01 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:28343 Date: 2015-11-12T15:29:00-06:00 List-Id: "AdaMagica" wrote in message news:62d6cec4-14b9-4d5c-b3bd-ccd7c9ea410d@googlegroups.com... > Am Donnerstag, 12. November 2015 18:31:18 UTC+1 schrieb Serge Robyns: >> I'm baffled. I copied you code and indeed. > > Looks like a bug in GNAT GPL 2015 (with a procedure). When I change the > procedure to a package, I get the same complaint. > > I habe to admit, I was too lazy to look up the conditions on Preelaborate. No bug here; preelaboration has no effect on a procedure -- which should be obvious as elaborating a procedure itself has no effect other than eliminating Program_Error when it is called. It's the elaboration of library-level objects that is problematical and has all of the rules. Randy.