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,d65138770e3daae3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.190.104 with SMTP id gp8mr18086976pbc.4.1340750608797; Tue, 26 Jun 2012 15:43:28 -0700 (PDT) MIME-Version: 1.0 Path: l9ni23531pbj.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!newsfeed.straub-nv.de!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Refactoring for error: cannot inline "X" (forward instance within enclosing body) Date: Tue, 26 Jun 2012 17:43:24 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <7a18bc7e-2541-46f9-9d92-65d87fed06e6@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1340750607 17755 69.95.181.76 (26 Jun 2012 22:43:27 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 26 Jun 2012 22:43:27 +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 Date: 2012-06-26T17:43:24-05:00 List-Id: "Brian Drummond" wrote in message news:jsc3pr$iap$1@dont-email.me... ... > Georg points out a workaround : -gnatN performs inline expansion in the > Gnat front end, which CAN see the package body while compiling the outer > module. It is not clear to me : is that allowed by the LRM, or is Gnat > being a little naughty here? Inline_Always is a GNAT invention, so it can do what it wants. And it is always OK for an Ada compiler to inline (whether or not a pragma or aspect or command line option is given.) Randy.