PR c++/85305 - pack in lambda init-capture.
authorJason Merrill <jason@redhat.com>
Mon, 30 Apr 2018 21:21:25 +0000 (17:21 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 30 Apr 2018 21:21:25 +0000 (17:21 -0400)
commitf026530a85c3d13aaebec5c4e96cd0a2f6ef4f17
tree0b723e6548ef3884af4b49ddcad43de0c2aad2c2
parentd6df811e5db4d0f2cfa27c33dd97bf0ab3fe0822
PR c++/85305 - pack in lambda init-capture.

* parser.c (cp_parser_initializer): Add subexpression_p parm; don't
check_for_bare_parameter_packs in a subexpression.
(cp_parser_lambda_introducer): Use it.

From-SVN: r259779
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp1z/fold-lambda2.C [new file with mode: 0644]