erichkeane added inline comments.
================ Comment at: clang/lib/Sema/SemaTemplateDeduction.cpp:1110 + // Ai is ignored; + if (PartialOrdering && ArgIdx + 1 == NumArgs && + isa<PackExpansionType>(Args[ArgIdx])) ---------------- aaron.ballman wrote: > Why are you checking `ArgIdx + 1 == NumArgs` here? It looks like you're only > handling the case where the pack is the last argument, but packs can appear > anywhere, right? This is definitely a concern to me as well, we probably have to check ALL packs and figure out what was deduced. ================ Comment at: clang/lib/Sema/SemaTemplateDeduction.cpp:5198 + unsigned NumParams2 = FD2->getNumParams(); + bool Variadic1 = NumParams1 && FD1->parameters().back()->isParameterPack(); + bool Variadic2 = NumParams2 && FD2->parameters().back()->isParameterPack(); ---------------- This is still the same issue I think? This should probably be a 'parameters contains pack', not just checking the last. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128745/new/ https://reviews.llvm.org/D128745 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits