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!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 16 Jun 2011 23:04:26 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: expression function bug or think? References: <678085105329914667.504682rmhost.bauhaus-maps.arcor.de@news.arcor.de> <87wrglwmao.fsf@mid.deneb.enyo.de> In-Reply-To: <87wrglwmao.fsf@mid.deneb.enyo.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4dfa6fda$0$7611$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 16 Jun 2011 23:04:26 CEST NNTP-Posting-Host: ad9ca4ba.newsspool1.arcor-online.net X-Trace: DXC=ij8_G9O9iQUmG86`U=_nC_ic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgRF8Vh=JL_3>[nc\616M64>ZLh>_cHTX3j]SH8[5NT72R^ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19892 Date: 2011-06-16T23:04:26+02:00 List-Id: On 6/16/11 10:31 PM, Florian Weimer wrote: > * 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? Coming in a moment ...