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,start 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 02:47:45 -0600 From: Reinert Korsnes Subject: Bug in Ada (SuSe 10.2) ? Newsgroups: comp.lang.ada Date: Tue, 19 Feb 2008 09:47:44 +0100 User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <0_mdna0iHpIsCifaRVnzvQA@telenor.com> X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 80.212.41.22 X-Trace: sv3-Dbx8mNx4aafbRNbNRZRP9ZOmSF47lnHEFOmzGSBYJEWl+w0oKJFnlDoC77B3e4S4j4sALRlT7WqlWS6!ZvYwl+aRlYioyXzQv+deI+6hgLQFNgKO+Ptzc00ELdEq1Bt22vklynBSYola62wtpXJ+bF2F4lg= 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:19883 Date: 2008-02-19T09:47:44+01:00 List-Id: Hi there, could anyone try the test program below (which should output only positive numbers or error message). I get the following output (running SuSe 10.2, updated per 19 feb 2008): 1 2 6 24 120 720 5040 40320 362880 3628800 39916800 479001600 1932053504 1278945280 2004310016 2004189184 -288522240 -898433024 109641728 -2102132736' The program should give an "integer out of range" error message ? I compiled the program with the following command: gnatmake -gnat05 test2 ---------------------------------------------------- with Text_IO; use Text_IO; procedure test2 is package Int_Io is new Text_IO.Integer_Io (Integer); use Int_Io; k : Integer := 1; n : Integer := 20; begin for i in 1..n loop k := k * i; Put(k,20);New_Line; end loop; end test2;