PR c++/84801 - ICE with unexpanded pack in lambda.
authorJason Merrill <jason@redhat.com>
Thu, 15 Mar 2018 03:49:07 +0000 (23:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 15 Mar 2018 03:49:07 +0000 (23:49 -0400)
commite62d673d7844bb3862bae57b719f83a2a42413b4
treee68f9cf1b8d37966c566b511223f632a00a7e942
parentb149eb04c87823dc2f0b9f141fbbc149fd21598a
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.

From-SVN: r258548
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic15.C [new file with mode: 0644]