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,f1a99299e465c053 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Erroneous results with LOG function when using inline option (-gnatN) Date: Tue, 3 Aug 2004 18:40:11 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <9c9fb8b4.0408030820.720a57cb@posting.google.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1091558411 27811 134.91.1.34 (3 Aug 2004 18:40:11 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Tue, 3 Aug 2004 18:40:11 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:2517 Date: 2004-08-03T18:40:11+00:00 List-Id: Fr?d?ric Ormancey wrote: : correct result is : : 3.53400000000000E+03 : 8.17018565287964E+00 : 6.93147180559945E-01 : 1.17870863245516E+01 : 11 The above result I get when compiling with GCC 3.4.1 on Debian, with or without -gnatN. : When using -gnatN option I got this erroneous result : : 3.53400000000000E+03 : 0.E+14 : 3.53400000053248E+14 : 5.04315471466814E-4932 : 2147483647 GNAT 3.15p (from NYU) and -gnatN: 3.53400000000000E+03 3.53400000000001E+14 3.53400000000001E+14 3.53400000000002E+14 2147483647 adding -gnato gives 3.53400000000000E+03 3.53400000000001E+14 3.53400000000001E+14 3.53400000000002E+14 raised CONSTRAINT_ERROR : test_numeric.adb:22 overflow check failed HTH -- Georg