PR c++/89686 - mixing init-capture and simple-capture in lambda.
authorMarek Polacek <polacek@redhat.com>
Wed, 13 Mar 2019 19:58:20 +0000 (19:58 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 13 Mar 2019 19:58:20 +0000 (19:58 +0000)
commit2b0a62741e675068c13e81690758855846c88726
tree1e1bc193ff07c7fcfc6f2e62cf849a1f8756f39c
parent84083a711ee6b84f42a6d33c45784d660cf4f514
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.

From-SVN: r269659
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/lambda-pack-init2.C [new file with mode: 0644]