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,a88e582de42cdc9b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.telenor.com!news.telenor.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 19 Feb 2008 03:53:40 -0600 From: Reinert Korsnes Subject: Re: Bug in Ada (SuSe 10.2) ? Newsgroups: comp.lang.ada Date: Tue, 19 Feb 2008 10:53:40 +0100 References: <0_mdna0iHpIsCifaRVnzvQA@telenor.com> <47ba9867$0$21892$4f793bc4@news.tdc.fi> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 80.212.41.22 X-Trace: sv3-Liei26nO/QYurYsmG4qjkx+fT5sFhrRQr+qA0mJcJ91n1Ho8OsTewOdHCvJbFUIq3EDeAVXw+ykde6X!rSjLDgBa/ybyCA3hl2i9akSxT/edkGsaXlT96X8xm1jfuVKgbAWjOCG0drd8RI/1gGVXcb0dkdw= X-Complaints-To: news-abuse@telenor.net X-DMCA-Complaints-To: news-abuse@telenor.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Xref: g2news1.google.com comp.lang.ada:19885 Date: 2008-02-19T10:53:40+01:00 List-Id: Thanks, I see, I looked for a general "safe mode" under gnat. Did not find. Is there any ? reinert Niklas Holsti wrote: > Reinert Korsnes wrote: >> Hi there, >> >> could anyone try the test program below >> (which should output only positive numbers or error message). >> ... >> The program should give an "integer out of range" error message ? > > GNAT does not generate run-time overflow checks by default. > >> I compiled the program with the following command: >> gnatmake -gnat05 test2 > > Add the option -gnato to enable run-time overflow checks. You > should then get: > > 1 > 2 > 6 > 24 > 120 > 720 > 5040 > 40320 > 362880 > 3628800 > 39916800 > 479001600 > > raised CONSTRAINT_ERROR : test2.adb:14 overflow check failed > > > HTH > > -- > Niklas Holsti > Tidorum Ltd > niklas holsti tidorum fi > . @ .