https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84801
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Mar 15 03:49:07 2018 New Revision: 258548 URL: https://gcc.gnu.org/viewcvs?rev=258548&root=gcc&view=rev Log: PR c++/84801 - ICE with unexpanded pack in lambda. We avoid complaining about unexpanded packs when inside a lambda, since the lambda as a whole could be part of a pack expansion. But that can only be true if the lambda is in a template context. * pt.c (check_for_bare_parameter_packs): Don't return early for a lambda in non-template context. Added: trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic15.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c