https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104624
--- Comment #3 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:65735d21ac410463126114c572999682f987972c commit r12-8258-g65735d21ac410463126114c572999682f987972c Author: Jason Merrill <ja...@redhat.com> Date: Thu Apr 21 17:24:07 2022 -0400 c++: generic lambda fn parm pack [PR104624] Parameter packs from the enclosing context can be used unexpanded in a lambda that is itself part of a pack expansion, but not packs that are part of the lambda itself. We already check for capture packs; we also need to check for function parameter packs of the lambda call operator. PR c++/104624 gcc/cp/ChangeLog: * pt.cc (check_for_bare_parameter_packs): Check for lambda function parameter pack. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/lambda-generic-variadic22.C: New test.