blob: 6ccc7e8507bda90a2b02cde7e884c05f419ddad2 [file] [log] [blame]
// { dg-do compile { target c++20 } }
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" }