-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[clang] llvm_unreachable hit in InitializeNonTypeDiffVariables for NTTP of kind member object pointer #93068
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
Comments
@llvm/issue-subscribers-clang-frontend Author: Saurav Yadav (3y3p4tch)
branch: llvmorg-18.1.6
stack trace:
additional Information:
Here, my |
Minimal reproducible code: struct A {
int x_;
};
struct B : A {};
template <auto memberObjPtr>
struct X {};
int main () {
X<&A::x_> x;
X<static_cast<int B::*>(&A::x_)> y = x; // invalid conversion, clang crashes when generating diagnostic
return 0;
}; |
@mizvekov You want to look at this one? |
…he template differ This was not implemented in #78041 This patch does not implement this fucntionality, it just falls back to the expression when possible. Otherwise, such as when dealing with canonical types to begin with, this will just ignore the argument as if it wasn't even there. Fixes #93068
…he template differ This was not implemented in #78041 This patch does not implement this fucntionality, it just falls back to the expression when possible. Otherwise, such as when dealing with canonical types to begin with, this will just ignore the argument as if it wasn't even there. Fixes #93068
…he template differ (#93265) This was not implemented in #78041 when StructuralValue TemplateArguments were originally added. This patch does not implement this functionality, it just falls back to the expression when possible. Otherwise, such as when dealing with canonical types to begin with, this will just ignore the argument as if it wasn't even there. Fixes #93068
branch: llvmorg-18.1.6
stack trace:
additional Information:
Here, my
memberObjPtr
is a NTTP declared asauto
and is instantiated as a member object pointer. Unfortunately I have not identified a minimal test case for which this fails but I am willing to collaborate on this to identify the core issue. Please let me know what additional information I should share from the coredump.The text was updated successfully, but these errors were encountered: