1 // { dg-do compile { target c++20 } }
4 bool operator==(const A&) const;
10 bool operator==(const D& x) const = default; // { dg-error "A::operator==" "" { target c++20_down } }
11 bool operator!=(const D& z) const = default; // { dg-error "D::operator==" "" { target c++20_down } }
12 // { dg-error "called" "" { target { c++23 && implicit_constexpr } } .-1 }
16 static_assert (d == d); // { dg-error "constant|constexpr" }
17 static_assert (!(d != d)); // { dg-error "constant|constexpr" }