c++: hash table ICE with variadic alias [PR105003]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-86953.C
blob2eabe48d1da0209d5db6ac6052a51990907bb249
1 // PR c++/86953
2 // { dg-do run { target c++11 } }
3 // { dg-options "-O2" }
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); }
15 int
16 main ()
18   bool b = B{} == B{};