comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Legitimate Argument_Error Or Compiler Bug?
Date: 2000/09/30
Date: 2000-09-30T00:00:00+00:00	[thread overview]
Message-ID: <8r5rhh$ij9$1@nnrp1.deja.com> (raw)
In-Reply-To: 39CFA126.6669BF45@acm.org

In article <39CFA126.6669BF45@acm.org>,
  Marin David Condic <mcondic.nospam@acm.org> 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.




      parent reply	other threads:[~2000-09-30  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-25  0:00 Legitimate Argument_Error Or Compiler Bug? Marin David Condic
2000-09-25  0:00 ` Marin David Condic
2000-09-30  0:00 ` Robert Dewar [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox