-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Default operator<=> with an __attribute__((vector_size)) field crashes frontend #137452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Comments
@llvm/issue-subscribers-clang-frontend Author: Alisa Sireneva (purplesyringa)
https://godbolt.org/z/1j3v6MW6v
struct comparable_t {
__attribute__((vector_size(32))) double numbers;
auto operator<=>(const comparable_t& rhs) const = default;
};
|
This goes all the way back to clang-10. |
Note GCC prints out a sorry message when used:
|
Clang also prints a sorry message when trying to invoke __attribute__((vector_size(32))) double numbers;
int main() {
numbers <=> numbers;
}
So that's specifically an issue with the default implementation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
https://godbolt.org/z/1j3v6MW6v
The text was updated successfully, but these errors were encountered: