https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88678

--- Comment #5 from Peter Bergner <bergner at gcc dot gnu.org> ---
Hmm, the test case is explicitly adding the options
-ffpe-trap=overflow,invalid, so is this a test case error?  We tell it to trap
on invalid fp operations which we force it to do when generating the signaling
nan value.  Removing the above option allows the reduced test case to not die.

bergner@pike:~/gcc/BUGS/PR88678$ gfortran -ffpe-trap=invalid -static bug.f90 
bergner@pike:~/gcc/BUGS/PR88678$ ./a.out 

Program received signal SIGFPE: Floating-point exception - erroneous arithmetic
operation.

Backtrace for this error:
#0  0x10001b1b
Floating point exception
bergner@pike:~/gcc/BUGS/PR88678$ gfortran -static bug.f90 
bergner@pike:~/gcc/BUGS/PR88678$ ./a.out 
bergner@pike:~/gcc/BUGS/PR88678$

Reply via email to