[Bug c++/89279] New: `floorf` not in `std` despite -std=c++11

2019-02-10 Thread christ...@lipka-koeln.de
++ 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

[Bug c++/84949] New: -ffast-math bugged with respect to NaNs

2018-03-19 Thread christ...@lipka-koeln.de
++ 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

[Bug libstdc++/84949] -ffast-math bugged with respect to NaNs

2018-03-19 Thread christ...@lipka-koeln.de
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,