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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88394cd819fe3197 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Legitimate Argument_Error Or Compiler Bug? Date: 2000/09/30 Message-ID: <8r5rhh$ij9$1@nnrp1.deja.com>#1/1 X-Deja-AN: 676011806 References: <39CFA126.6669BF45@acm.org> X-Http-Proxy: 1.0 x58.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Sep 30 23:04:19 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-09-30T00:00:00+00:00 List-Id: In article <39CFA126.6669BF45@acm.org>, Marin David Condic wrote: > The following code raises Argument_Error when attempting to compute a > positive fraction to a real power. Now so far as I can tell, there is > nothing particularly undefined about a fraction raised to a real power, > so Argument_Error seems to be out of place here. Either I've got > something wrong or I've tripped across a bug in the compiler (GNAT > 3.13p). Is there a reason this exception should be raised or should I > submit a bug report? > > Thanks for the help. > > MDC I am quite surprised that you did not find the obvious error here yourself :-) The procedure I would follow to prevent this kind of temporary blindness (which aflicts us all from time to time) is to run this in the debugger, break on the exception and then dump the backtrace, which will immediately show the negative value and trigger you to look into what is going on! Sent via Deja.com http://www.deja.com/ Before you buy.