https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69682
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Note the documentation says the following: --- @item -fsignaling-nans @opindex fsignaling-nans Compile code assuming that IEEE signaling NaNs may generate user-visible traps during floating-point operations. Setting this option disables optimizations that may change the number of exceptions visible with signaling NaNs. This option implies @option{-ftrapping-math}. This option causes the preprocessor macro @code{__SUPPORT_SNAN__} to be defined. The default is @option{-fno-signaling-nans}. This option is experimental and does not currently guarantee to disable all GCC optimizations that affect signaling NaN behavior. --- but even with -fsignalling-nans the bug reproduces with GCC 5.3.0. This is due to PR69308 which I believe is a dup of this bug (this means trunk is not affected). This will be fixed in GCC 5.4.0. *** This bug has been marked as a duplicate of bug 69308 ***