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,ed872c72866dab2b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.szaf.org!news.gnuher.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: expression function bug or think? Date: Thu, 16 Jun 2011 22:31:27 +0200 Message-ID: <87wrglwmao.fsf@mid.deneb.enyo.de> References: <678085105329914667.504682rmhost.bauhaus-maps.arcor.de@news.arcor.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ruchba.enyo.de 1308256287 32535 172.17.135.6 (16 Jun 2011 20:31:27 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:bP396rWm03GKJMF5HKQQU2uyLgo= Xref: g2news1.google.com comp.lang.ada:19890 Date: 2011-06-16T22:31:27+02:00 List-Id: * georg bauhaus: > When I compile the following program with GNAT GPL 2011 on Mac, I > get confusingly different behavior depending on whether or not I > suppress checks. *Suppressing* the checks results in the desired > program behavior. (The effect reminds me of potential for Ariane 5 > gossip—or simply of me being dense.) When checks are *disabled* > (-gnatp), the program runs as expected and prints fib(10) = 55. > When checks are enabled (no -gnatp) I get a constraint error on L.6. > Optimization does not affect the result, only -gnatp. Out of curiosity, can you show us the expanded Ada code, using -gnatG?