[Bug c++/71546] lambda capture fails with "was not declared in this scope"
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 27 20:59:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71546
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Feb 27 20:57:35 2018
New Revision: 258043
URL: https://gcc.gnu.org/viewcvs?rev=258043&root=gcc&view=rev
Log:
PR c++/71546 - lambda init-capture with qualified-id.
* parser.c (cp_parser_lambda_introducer): Clear scope after
each lambda capture.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init17.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
More information about the Gcc-bugs
mailing list