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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,17506301c0751a38 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Need exception despite Machine_Overflows is false Date: 1998/12/17 Message-ID: #1/1 X-Deja-AN: 423398542 Sender: matt@mheaney.ni.net References: <36796140.62B2788C@magic.fr> NNTP-Posting-Date: Thu, 17 Dec 1998 14:18:56 PDT Newsgroups: comp.lang.ada Date: 1998-12-17T00:00:00+00:00 List-Id: Try the -gnato option. Pascal MALAISE writes: > Using gnat 3.10p on Linux, > I make several computations on long_float (s), then use a > text_io.float_io > to display the results => NaN***** > > There is an overflow, Gnat uses the libc, long_float'Machine_Overflows > is false... > fair enough. > > What can I do to get a constraint_error raised when there is an > overflow? > Don't tell me that I have to check, via an interface to C finite(), the > result of > each operation! > > -- > Pascal MALAISE > (priv) mailto:malaise@magic.fr > (prof) mailto:malaise@fr.airsysatm.thomson-csf.com