https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93480
Bug ID: 93480 Summary: Defaulted <=> doesn't expand array elements Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: barry.revzin at gmail dot com Target Milestone: --- This example should be valid: #include <compare> struct C { int x[4]; auto operator<=>(C const&) const = default; }; bool check(C const& a, C const& b) { return (a <=> b) == 0; } a <=> b should check each array element in turn. But gcc defines C's operator<=> as deleted.