[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)
Jason Rice via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 3 10:04:31 PST 2025
================
@@ -50,16 +51,28 @@ class CollectUnexpandedParameterPacksVisitor
auto *FTD = FD ? FD->getDescribedFunctionTemplate() : nullptr;
if (FTD && FTD->getTemplateParameters()->getDepth() >= DepthLimit)
return;
- } else if (getDepthAndIndex(ND).first >= DepthLimit)
+ } else if (ND->isTemplateParameterPack() &&
----------------
ricejasonf wrote:
I was adding the case for BindingDecl. I see template parameters could be kept as the last case. I will try that.
https://github.com/llvm/llvm-project/pull/121417
More information about the cfe-commits
mailing list