[Bug fortran/88342] Possible bug with IEEE_POSITIVE_INF and -ffpe-trap=overflow
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 29 18:18:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88342
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org
Target Milestone|--- |9.0
--- Comment #6 from kargl at gcc dot gnu.org ---
Fixed on trunk (aka 9.0). I have implemented the suggested patch in comment #3
for all available REAL kind types for qNaN, sNaN, +inf, and -inf. Thus, for
the code in comment #1, one can now use -ffpe-trap=invalid without getting an
SIGFPE.
Additional work needs to be done where IEEE_VALUE is actually inlined and the
mechanism in the C/C++ frontend are used to get an actual sNaN. That is for
another day.
More information about the Gcc-bugs
mailing list