c++: Fix C++20 variadic lambda init-capture grammar.
authorJason Merrill <jason@redhat.com>
Mon, 24 Feb 2020 01:52:41 +0000 (20:52 -0500)
committerJason Merrill <jason@redhat.com>
Mon, 24 Feb 2020 13:58:31 +0000 (08:58 -0500)
commit32b8f5df9f05426c82c6de1acaf9ca4aec68039d
tree0fa257608ecfde18b590513c1f9d5f514f70d63e
parent120e873484f20d9a0b8400e2e464ac5b2088a747
c++: Fix C++20 variadic lambda init-capture grammar.

The grammar for variadic init-capture was fixed at the Prague C++ meeting
where we finalized C++20.

gcc/cp/ChangeLog
2020-02-24  Jason Merrill  <jason@redhat.com>

P0780R2: Resolve lambda init-capture pack grammar.
* parser.c (cp_parser_lambda_introducer): Expect &...x=y rather than
...&x=y.
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp2a/lambda-pack-init4.C [new file with mode: 0644]