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,FREEMAIL_FROM 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.227.67 with SMTP id ry3mr15960813pbc.8.1340791483020; Wed, 27 Jun 2012 03:04:43 -0700 (PDT) Path: l9ni25330pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Keean Schupke Newsgroups: comp.lang.ada Subject: Re: Refactoring for error: cannot inline "X" (forward instance within enclosing body) Date: Wed, 27 Jun 2012 03:04:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0b5eba49-bdbb-499a-b48f-f89fd56f237d@googlegroups.com> References: <7a18bc7e-2541-46f9-9d92-65d87fed06e6@googlegroups.com> NNTP-Posting-Host: 82.44.19.199 Mime-Version: 1.0 X-Trace: posting.google.com 1340791482 8340 127.0.0.1 (27 Jun 2012 10:04:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 27 Jun 2012 10:04:42 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.44.19.199; posting-account=T5Z2vAoAAAB8ExE3yV3f56dVATtEMNcM User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-06-27T03:04:42-07:00 List-Id: On Tuesday, 26 June 2012 23:43:24 UTC+1, Randy Brukardt wrote: > "Brian Drummond" > wrote in message > ... > > 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. Is this something that should be considered a limitation, or bug in GNAT? Cheers, Keean.