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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Mar 13 19:58:20 2019
New Revision: 269659

URL: https://gcc.gnu.org/viewcvs?rev=269659&root=gcc&view=rev
Log:
        PR c++/89686 - mixing init-capture and simple-capture in lambda.
        * parser.c (cp_parser_lambda_introducer): Give error when combining
        init-capture and simple-capture.

        * g++.dg/cpp2a/lambda-pack-init2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to