1 // PR c++/86953 2 // { dg-do run { target c++11 } } 3 // { dg-options "-O2" } 4 5 struct B { 6 double x; 7 bool y, z; 8 constexpr bool operator== (const B& o) const noexcept 9 { 10 return x == o.x && y == o.y && z == o.z; 11 } 12 constexpr bool operator!= (const B& o) const noexcept { return !(*this == o); } 13 }; 14 15 int main()16main () 17 { 18 bool b = B{} == B{}; 19 } 20