https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94162
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2020-08-18 --- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Test from Bug 96627: #include <iostream> struct Float { float value; constexpr Float(float value) : value (value) {} constexpr bool operator == (Float other) const noexcept { return abs(value - other.value) < 0.5; } constexpr bool operator != (Float other) const noexcept { return !(*this == other); } constexpr bool operator <=> (const Float& other) const noexcept = default; };