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!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: bug compiler ? Date: Fri, 30 Jun 2017 13:20:34 -0500 Organization: JSA Research & Innovation Message-ID: References: <88752790-dedc-4185-aba9-b70361e59d19@googlegroups.com> Injection-Date: Fri, 30 Jun 2017 18:20:35 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="19531"; mail-complaints-to="news@jacob-sparre.dk" 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:47237 Date: 2017-06-30T13:20:34-05:00 List-Id: "AdaMagica" wrote in message news:c47d5433-8eb5-4dde-99f9-173f7dded62c@googlegroups.com... > Just a guess: Maybe the compiler treats this simple statement function as > having convention intrinsic. Intrinsic functions have no address and > therefore no access is possible. > Whether this is legal - check the RM - I'm too lazy. It's legal. Expression functions aren't Intrinsic, they're just a short-hand for a usual function call. So this should be fine, and it seems that whatever is going on is not fine, so it is a compiler bug. Randy.