[clang] Reapply "[Clang] Improve diagnostics for expansion length mismatch" (PR #121044)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 25 07:17:32 PDT 2025
================
@@ -874,8 +874,11 @@ class PackDeductionScope {
SmallVector<UnexpandedParameterPack, 2> Unexpanded;
S.collectUnexpandedParameterPacks(Pattern, Unexpanded);
for (unsigned I = 0, N = Unexpanded.size(); I != N; ++I) {
- unsigned Depth, Index;
- std::tie(Depth, Index) = getDepthAndIndex(Unexpanded[I]);
+ UnexpandedParameterPack U = Unexpanded[I];
----------------
cor3ntin wrote:
I'd like to see a comment here (this is sufficiently confusing)
https://github.com/llvm/llvm-project/pull/121044
More information about the cfe-commits
mailing list