Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Bug in Ada (SuS...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 44 Topic 5555 of 5922
Post > Topic >>

Bug in Ada (SuSe 10.2) ?

by Reinert Korsnes <a@[EMAIL PROTECTED] > Feb 19, 2008 at 09:47 AM

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;
 




 44 Posts in Topic:
Bug in Ada (SuSe 10.2) ?
Reinert Korsnes <a@[EM  2008-02-19 09:47:44 
Re: Bug in Ada (SuSe 10.2) ?
Niklas Holsti <niklas.  2008-02-19 11:08:03 
Re: Bug in Ada (SuSe 10.2) ?
Reinert Korsnes <a@[EM  2008-02-19 10:53:40 
Re: Bug in Ada (SuSe 10.2) ?
billjones6789@[EMAIL PROT  2008-02-26 08:46:11 
Re: Bug in Ada (SuSe 10.2) ?
"Randy Brukardt"  2008-02-26 14:53:28 
Re: Bug in Ada (SuSe 10.2) ?
Robert A Duff <bobduff  2008-02-26 20:05:26 
Re: Bug in Ada (SuSe 10.2) ?
Ludovic Brenta <ludovi  2008-02-19 03:21:26 
Re: Bug in Ada (SuSe 10.2) ?
Reinert Korsnes <a@[EM  2008-02-20 13:41:38 
Re: Bug in Ada (SuSe 10.2) ?
billjones6789@[EMAIL PROT  2008-02-27 02:06:14 
Re: Bug in Ada (SuSe 10.2) ?
Robert A Duff <bobduff  2008-02-27 12:49:48 
Re: Bug in Ada (SuSe 10.2) ?
"Randy Brukardt"  2008-02-27 18:30:34 
Re: Bug in Ada (SuSe 10.2) ?
Robert A Duff <bobduff  2008-02-28 10:33:56 
Re: Bug in Ada (SuSe 10.2) ?
Gautier <gautier@[EMAI  2008-02-22 06:40:02 
Re: Bug in Ada (SuSe 10.2) ?
Adam Beneschan <adam@[  2008-02-20 08:50:27 
Re: Bug in Ada (SuSe 10.2) ?
"Jeffrey R. Carter&q  2008-02-20 18:31:50 
Re: Bug in Ada (SuSe 10.2) ?
Adam Beneschan <adam@[  2008-02-20 15:10:00 
Re: Bug in Ada (SuSe 10.2) ?
Adam Beneschan <adam@[  2008-02-20 15:22:20 
Re: Bug in Ada (SuSe 10.2) ?
"Jeffrey R. Carter&q  2008-02-21 00:31:56 
Re: Bug in Ada (SuSe 10.2) ?
"Jeffrey R. Carter&q  2008-02-21 00:35:42 
Re: Bug in Ada (SuSe 10.2) ?
"Randy Brukardt"  2008-02-20 18:31:38 
Re: Bug in Ada (SuSe 10.2) ?
Jean-Pierre Rosen <ros  2008-02-21 09:56:48 
Re: Bug in Ada (SuSe 10.2) ?
"Alex R. Mosteo"  2008-02-21 10:08:44 
Re: Bug in Ada (SuSe 10.2) ?
tmoran@[EMAIL PROTECTED]   2008-02-20 18:55:21 
Re: Bug in Ada (SuSe 10.2) ?
"Alex R. Mosteo"  2008-02-21 10:11:38 
Re: Bug in Ada (SuSe 10.2) ?
"Randy Brukardt"  2008-02-21 17:01:15 
Re: Bug in Ada (SuSe 10.2) ?
billjones6789@[EMAIL PROT  2008-02-21 00:08:15 
Re: Bug in Ada (SuSe 10.2) ?
Adam Beneschan <adam@[  2008-02-22 08:43:30 
Re: Bug in Ada (SuSe 10.2) ?
Adam Beneschan <adam@[  2008-03-06 09:46:50 
Re: Bug in Ada (SuSe 10.2) ?
Ludovic Brenta <ludovi  2008-02-21 01:27:47 
Re: Bug in Ada (SuSe 10.2) ?
billjones6789@[EMAIL PROT  2008-02-21 01:46:15 
Re: Bug in Ada (SuSe 10.2) ?
"Randy Brukardt"  2008-02-21 16:32:27 
Re: Bug in Ada (SuSe 10.2) ?
Stephen Leake <stephen  2008-02-22 04:06:36 
Re: Bug in Ada (SuSe 10.2) ?
billjones6789@[EMAIL PROT  2008-02-22 08:10:42 
Re: Bug in Ada (SuSe 10.2) ?
"Randy Brukardt"  2008-02-22 13:52:11 
Re: Bug in Ada (SuSe 10.2) ?
Vadim Godunko <vgodunk  2008-02-22 13:29:55 
Re: Bug in Ada (SuSe 10.2) ?
Robert A Duff <bobduff  2008-02-22 16:39:08 
Re: Bug in Ada (SuSe 10.2) ?
billjones6789@[EMAIL PROT  2008-02-23 02:16:14 
Re: Bug in Ada (SuSe 10.2) ?
billjones6789@[EMAIL PROT  2008-02-23 02:36:47 
Re: Bug in Ada (SuSe 10.2) ?
"Randy Brukardt"  2008-02-25 18:32:54 
Re: Bug in Ada (SuSe 10.2) ?
Colin Paul Gloster <Co  2008-03-06 12:55:16 
Access type (mis)use (Was: Bug in Ada (SuSe 10.2) ?)
Jacob Sparre Andersen <  2008-02-21 13:27:40 
Re: Access type (mis)use (Was: Bug in Ada (SuSe 10.2) ?)
"Bob Klungle" &  2008-02-21 19:40:34 
Re: Access type (mis)use (Was: Bug in Ada (SuSe 10.2) ?)
"Jeffrey R. Carter&q  2008-02-21 21:25:59 
Re: Bug in Ada (SuSe 10.2) ?
Georg Bauhaus <rm.plus  2008-02-22 20:21:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 18:26:36 CDT 2008.