================
@@ -935,6 +935,11 @@ class PackDeductionScope {
S.collectUnexpandedParameterPacks(Pattern, Unexpanded);
for (unsigned I = 0, N = Unexpanded.size(); I != N; ++I) {
unsigned Depth, Index;
+
+ // Function parameter packs cannot be deduced.
+ if (isa_and_nonnull<ParmVarDecl>(
+ dyn_cast<NamedDecl *>(Unexpanded[I].first)))
+ continue;
----------------
zwuis wrote:
```cpp
template <typename... Ts>
void f(Ts... args);
void g() { f(0); }
```
Here `Unexpanded[i].first` is a `const TemplateTypeParmType *`. See
https://github.com/llvm/llvm-project/blob/22a9911d5ba165423edf96fc95faa2529f311965/clang/include/clang/Sema/Sema.h#L238-L239
https://github.com/llvm/llvm-project/pull/215235
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits