-
Notifications
You must be signed in to change notification settings - Fork 13k
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
CTAD: crashes on clang::Expr::EvaluateAsConstantExpr
#92596
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: Haojian Wu (hokein)
clang current crashes on the following code.
The |
Confirmed: https://godbolt.org/z/KcfEqd69v |
hokein
added a commit
to hokein/llvm-project
that referenced
this issue
May 28, 2024
In the llvm#90961 fix, we miss a case where the undeduced template parameters of the underlying deduction guide is not transformed, which leaves incorrect depth/index information, and causes crash when evaluating the constraints. This patch fix this missing case. Fixes llvm#92596 Fixes llvm#92212
hokein
added a commit
to hokein/llvm-project
that referenced
this issue
Jun 27, 2024
In the llvm#90961 fix, we miss a case where the undeduced template parameters of the underlying deduction guide is not transformed, which leaves incorrect depth/index information, and causes crash when evaluating the constraints. This patch fix this missing case. Fixes llvm#92596 Fixes llvm#92212
hokein
added a commit
to hokein/llvm-project
that referenced
this issue
Jul 4, 2024
In the llvm#90961 fix, we miss a case where the undeduced template parameters of the underlying deduction guide is not transformed, which leaves incorrect depth/index information, and causes crash when evaluating the constraints. This patch fix this missing case. Fixes llvm#92596 Fixes llvm#92212
kbluck
pushed a commit
to kbluck/llvm-project
that referenced
this issue
Jul 6, 2024
…llvm#93533) In the llvm#90961 fix, we miss a case where the undeduced template parameters of the underlying deduction guide are not transformed, which leaves incorrect depth/index information, and causes crashes when evaluating constraints. This patch fix this missing case. Fixes llvm#92596 Fixes llvm#92212
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]
clang current crashes on the following code.
The
index
of template parameter occurrenceV
in the require-clause of the synthesizedAFoo
deduction guideauto (T3, V) -> Foo<T3, T3>
is wrong (2
), it should be1
. We miss this case at https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaTemplate.cpp#L2857-L2858.The text was updated successfully, but these errors were encountered: