[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)
janus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Feb 27 09:13:00 GMT 2009
------- Comment #7 from janus at gcc dot gnu dot org 2009-02-27 09:13 -------
Note that the problem also appears for log, while it does not for acosh and
atanh:
real :: x = -5.0
! FPE is not thrown
print *, log(x)
print *, log10(x)
print *, acos(x)
print *, asin(x)
! FPE is thrown
!print *, sqrt(x)
!print *, atanh(x)
!print *, acosh(x)
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39314
More information about the Gcc-bugs
mailing list