http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57066
Bug #: 57066
Summary: std::logb(-inf) returns wrong value
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bolero.murakami at gmail dot com
Code:
//
struct Z {
Z() = default;
Z(Z const&) = default;
constexpr Z(Z&&) {} /*
++
Assignee: unassigned at gcc dot gnu.org
Reporter: bolero.murakami at gmail dot com
Target Milestone: ---
std::is_nothrow_invocable is broken.
example:
struct X {
X(int x) { throw x; }
};
int f(int x) noexcept { return x; }
using F = decltype(f
++
Assignee: unassigned at gcc dot gnu.org
Reporter: bolero.murakami at gmail dot com
exp(NaN+0_i) returns NaN+NaN_i.
However, it should returns NaN+0_i correctly.
ISO/IEC 9899:1999
G.6.3.1 The cexp functions
— cexp(NaN + i0) returns NaN + i0.
Code:
//
#include
#include