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!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!news.ecp.fr!club-internet.fr!feedme-small.clubint.net!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news.banetele.no!uio.no!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Tue, 19 Feb 2008 11:08:03 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Bug in Ada (SuSe 10.2) ? References: <0_mdna0iHpIsCifaRVnzvQA@telenor.com> In-Reply-To: <0_mdna0iHpIsCifaRVnzvQA@telenor.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <47ba9867$0$21892$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1203411047 news.tdc.fi 21892 81.17.205.61:32837 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:19884 Date: 2008-02-19T11:08:03+02:00 List-Id: 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 . @ .