[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 07:00:07 PST 2025
================
@@ -2484,6 +2488,14 @@ TemplateInstantiator::TransformDeclRefExpr(DeclRefExpr *E) {
if (PD->isParameterPack())
return TransformFunctionParmPackRefExpr(E, PD);
+ if (BindingDecl *BD = dyn_cast<BindingDecl>(D); BD && BD->isParameterPack()) {
+ BD = cast<BindingDecl>(TransformDecl(BD->getLocation(), BD));
----------------
erichkeane wrote:
Yep! And this cast will fail here if that is the case.
https://github.com/llvm/llvm-project/pull/121417
More information about the cfe-commits
mailing list