++
Assignee: unassigned at gcc dot gnu.org
Reporter: christ...@lipka-koeln.de
Target Milestone: ---
Consider the following code snippet:
#include
float foo(float x)
{
return std::floorf(x);
}
Compiling with `g++ -std=c++11` causes a compiler error
++
Assignee: unassigned at gcc dot gnu.org
Reporter: christ...@lipka-koeln.de
Target Milestone: ---
When -ffast-math is specified, NaNs are broken in _one_ of the following ways:
(A)
std::isnan() and std::fpclassify() are broken in that they fail to identify
NaNs.
-OR-
(B)
std
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84949
--- Comment #2 from Christoph Lipka ---
Having dug a bit deeper, I notice another way in which NaNs are broken in
-ffinite-math-only mode:
Normally, NaNs should always compare NON-EQUAL, even when compared to itself.
In -ffinite-math-only mode,