-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Clang crashes when attempting to initialise a constexpr static data member from a non-constexpr static member function template #84522
Comments
cjdb
added
clang
Clang issues not falling into any other category
crash-on-invalid
labels
Mar 8, 2024
Interestingly, this doesn't seem to fail when |
EugeneZelenko
added
clang:codegen
and removed
clang
Clang issues not falling into any other category
labels
Mar 8, 2024
@llvm/issue-subscribers-clang-codegen Author: Christopher Di Bella (cjdb)
**Sample code**
Both of the following snippets cause Clang to crash in isolation. struct ClangCrasher {
template <int...> static auto BuildMap() {}
static constexpr auto value = BuildMap();
}; struct ClangCrasher {
template <int...> static auto BuildMap() { return 0; }
static constexpr auto value = BuildMap<>();
}; Diagnostic
Compiler details
|
Looks related to: #49085 |
Ah, this also fails when |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample code
Both of the following snippets cause Clang to crash in isolation.
Diagnostic
Compiler details
The text was updated successfully, but these errors were encountered: