PR c++/71546 - lambda init-capture with qualified-id.
authorHåkon Sandsmark <hsandsmark@gmail.com>
Tue, 27 Feb 2018 20:57:35 +0000 (20:57 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 27 Feb 2018 20:57:35 +0000 (15:57 -0500)
commit76bd270a7df7dbf5a02046072947802365bb67f6
tree865ff09090dd928caaa7a551839bd1c56d4206c0
parent10b5c9829b7e162342e8e730b6ed072bcd0dc7b2
PR c++/71546 - lambda init-capture with qualified-id.

* parser.c (cp_parser_lambda_introducer): Clear scope after
each lambda capture.

From-SVN: r258043
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp1y/lambda-init17.C [new file with mode: 0644]