-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Clang crashes when attempting to initialise a constexpr static data member from a non-constexpr static member function template #84522
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
Comments
Interestingly, this doesn't seem to fail when |
@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
Labels
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: