https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97358

--- Comment #12 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:270c5a982ccb4ef83bd9ad37d39cf47461acb55a

commit r11-3893-g270c5a982ccb4ef83bd9ad37d39cf47461acb55a
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Oct 14 14:55:04 2020 -0400

    c++: Diagnose bogus variadic lambda. [PR97358]

    If the lambda has a capture pack, it cannot be used unexpanded within the
    body of the lambda.  If you want to expand the pack across multiple
lambdas,
    don't capture the whole pack.

    gcc/cp/ChangeLog:

            PR c++/97358
            * pt.c (check_for_bare_parameter_packs): Diagnose use of
            capture pack.

    gcc/testsuite/ChangeLog:

            PR c++/97358
            * g++.dg/cpp0x/lambda/lambda-variadic11.C: New test.

Reply via email to