https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97246
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:ac001ddd0cb635dec0145bf577ac796894bda398 commit r11-7204-gac001ddd0cb635dec0145bf577ac796894bda398 Author: Jason Merrill <ja...@redhat.com> Date: Thu Feb 11 19:45:22 2021 -0500 c++: variadic lambda template and empty pack [PR97246] In get<0>, Is is empty, so the first parameter pack of the lambda is empty, but after the fix for PR94546 we were wrongly associating it with the partial instantiation of 'v'. gcc/cp/ChangeLog: PR c++/97246 PR c++/94546 * pt.c (extract_fnparm_pack): Check DECL_PACK_P here. (register_parameter_specializations): Not here. gcc/testsuite/ChangeLog: PR c++/97246 * g++.dg/cpp2a/lambda-generic-variadic21.C: New test.