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: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Is this a bug in my code or the compiler? Date: Sat, 13 Jun 2015 22:50:05 +0200 Organization: A noiseless patient Spider Message-ID: References: <4f4cd4b1-0a6d-441b-a4f7-98add70e4e1e@googlegroups.com> <87si9vohrg.fsf@adaheads.sparre-andersen.dk> <87oakjo8yh.fsf@adaheads.sparre-andersen.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 13 Jun 2015 20:48:51 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="5384f6c575fc1072708dc3eeb822f9d6"; logging-data="24507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Fuv/OpxrMguv4C1IQIMLP" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <87oakjo8yh.fsf@adaheads.sparre-andersen.dk> Cancel-Lock: sha1:SJg5yRPhIrsmfOPhDAexUpxdqLs= Xref: number.nntp.giganews.com comp.lang.ada:193618 Date: 2015-06-13T22:50:05+02:00 List-Id: Le 13/06/2015 18:43, Jacob Sparre Andersen a écrit : >>> Maybe there is an AdaControl rule to detect this kind of problem. >> > Of course. It's called Parameter_Aliasing :-) > I tried it without luck on this test case: [Snip example on a function call] Yeap, it works on procedure and entry calls, I didn't put (yet) the case of function calls... Added to my todo list for the next version. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr