blob: aabbd324d862aacf9364b33c2d3eb4d55ae1ccb7 [file] [log] [blame]
// PR c++/92966
// { dg-do compile { target c++2a } }
struct S {
int operator==(const S&) const = default; // { dg-error "must return 'bool'" }
int s; // { dg-message "declared here" "" { target *-*-* } .-1 }
};
static_assert(S{} == S{}); // { dg-error "" }