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]
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: