This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43886] [C++0x] name lookup failure on un-used local variable in lambda compound-statement
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 3 Aug 2011 01:27:07 +0000
- Subject: [Bug c++/43886] [C++0x] name lookup failure on un-used local variable in lambda compound-statement
- Auto-submitted: auto-generated
- References: <bug-43886-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43886
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-03 01:25:47 UTC ---
Author: jason
Date: Wed Aug 3 01:25:44 2011
New Revision: 177228
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177228
Log:
PR c++/43886
* parser.c (cp_parser_lambda_body): Clear local_variables_forbidden_p.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg2.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/parser.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog