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.223.40 with SMTP id qr8mr14251804pbc.0.1340653641996; Mon, 25 Jun 2012 12:47:21 -0700 (PDT) Path: l9ni19308pbj.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Refactoring for error: cannot inline "X" (forward instance within enclosing body) Date: Mon, 25 Jun 2012 19:47:21 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <7a18bc7e-2541-46f9-9d92-65d87fed06e6@googlegroups.com> Mime-Version: 1.0 Injection-Date: Mon, 25 Jun 2012 19:47:21 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="DkTdSjxOCm6DqG+Uf7eArg"; logging-data="9545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IzGxixrRChHzGVQudkXzDAHlZY4Cl0jQ=" User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Cancel-Lock: sha1:shOC8Ewxd0Cap2ZGQ/CyhObmewg= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-06-25T19:47:21+00:00 List-Id: On Mon, 25 Jun 2012 06:02:21 -0700, Keean Schupke wrote: > Hi, > > > I am forcing the inlining of some procedures using: > > pragma Inline_Always(X); > > and I am getting the error: > > cannot inline "X" (forward instance within enclosing body) > > Can someone explain what a forward instance is and what the enclosing > body (IE the scope of the error is). Try posting a minimal compilable example that allows others to reproduce the problem. - Brian