blob: 56b87c3fe42a1e8faced38e86209f0d77805da17 [file] [log] [blame]
// PR c++/94478 - ICE with defaulted comparison operator.
// { dg-do compile { target c++2a } }
struct B {};
bool operator!=(const B&, const B&) = default; // { dg-error "not a friend" }
bool operator==(const B&, const B&) = default; // { dg-error "not a friend" }
bool operator<=>(const B&, const B&) = default; // { dg-error "not a friend" }