================ @@ -237,7 +237,7 @@ bool Decl::isTemplateParameterPack() const { } bool Decl::isParameterPack() const { - if (const auto *Var = dyn_cast<VarDecl>(this)) + if (const auto *Var = dyn_cast<ValueDecl>(this)) ---------------- ricejasonf wrote:
They would still both just look for a PackExpansionType. There is no place where a variable can be expanded that a binding cannot so I think it benefits to have this in ValueDecl. See its use in SemaTemplateVariadic.cpp. https://github.com/llvm/llvm-project/pull/121417 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits