blob: 9d008f19feac6789aa2d84230fc1a96cb64419bc [file] [log] [blame]
// { dg-do compile { target c++2a } }
struct A
{
int i;
bool operator==(A a) const { return i == a.i; }
};
struct B
{
A a;
bool operator==(const B&) const = default; // { dg-error "A::operator==" }
};
constexpr bool x = B() == B(); // { dg-error "non-.constexpr" }