This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66480] FPE calling cpu_time() with -ffpe-trap=inexact
- From: "nicolasbock at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Jun 2015 18:24:28 +0000
- Subject: [Bug fortran/66480] FPE calling cpu_time() with -ffpe-trap=inexact
- Auto-submitted: auto-generated
- References: <bug-66480-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66480
--- Comment #7 from Nicolas Bock <nicolasbock at gmail dot com> ---
(In reply to Steve Kargl from comment #6)
> On Wed, Jun 10, 2015 at 05:20:58PM +0000, nicolasbock at gmail dot com wrote:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66480
> >
> > --- Comment #5 from Nicolas Bock <nicolasbock at gmail dot com> ---
> > Thanks for the comments. I should have understood this exception
> > better before posting this as a bug.
> >
>
> We would rather see a bug report and then simply close it
> than to get no bug reports at all. It is unlikely that
> one can avoid an inexact FPE in code involving floating
> point unless the algorithm is specifically designed to
> avoid it.
Thanks :) I agree with you, from it's definition, the inexact result exception
is going to be raised for most operations. Why would one want to trap it?