-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"diverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issuespaceshipissues related to <=>issues related to <=>
Description
#include <vector>
struct X;
struct Y {
std::vector<X> x;
std::strong_ordering operator<=>(const Y& r) const = default;
};
struct X {
int i;
std::strong_ordering operator<=>(const X& r) const = default;
};
int main(){
Y y;
// error: object of type 'Y' cannot be compared because its 'operator<=>' is implicitly deleted
(void)(y <=> y);
}Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"diverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issuespaceshipissues related to <=>issues related to <=>