re PR c++/43886 ([C++0x] name lookup failure on un-used local variable in lambda...
authorJason Merrill <jason@redhat.com>
Tue, 2 Aug 2011 21:09:26 +0000 (17:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Aug 2011 21:09:26 +0000 (17:09 -0400)
commita9a740baf79d5a0883d567676256a4a2b29371e2
tree53aa4deb85160dafbb7eb51ac3c66da66d192ecb
parent54e7d7f5e9e226024737b41ce6feabf1522d13df
re PR c++/43886 ([C++0x] name lookup failure on un-used local variable in lambda compound-statement)

PR c++/43886
* parser.c (cp_parser_lambda_body): Clear local_variables_forbidden_p.

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