[clang] [Clang][Sema] Fix an ICE where structured binding packs within a lambda were not added to the CapturingScopeInfo (PR #214716)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 14 10:53:48 PDT 2026
================
@@ -924,6 +924,11 @@ Sema::ActOnDecompositionDeclarator(Scope *S, Declarator &D,
auto *BD = BindingDecl::Create(Context, DC, B.NameLoc, B.Name, QT);
+ if (BD->isParameterPack()) {
----------------
shafik wrote:
So we do this dance in a bunch of places now in Sema and it feels like this should be refactored into a stand alone function.
CC @Sirraide since you touched those instances last when refactoring `getEnclosingLambdaOrBlock`
https://github.com/llvm/llvm-project/pull/214716
More information about the cfe-commits
mailing list