re PR c++/56464 ([C++11] Crashes when using implicit this in a lambda capture in...
authorJason Merrill <jason@redhat.com>
Mon, 4 Mar 2013 17:12:32 +0000 (12:12 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 4 Mar 2013 17:12:32 +0000 (12:12 -0500)
commit4b16f9c8759e30a946ef32a79de671ed6460f2bb
treef219827cc3d7fcd6a15fc7a47f06fb52d179ad5c
parent0388c91350e82bf7ad3738566b7d084a3e5e5691
re PR c++/56464 ([C++11] Crashes when using implicit this in a lambda capture in member initializer)

PR c++/56464
PR c++/54383
* semantics.c (lambda_expr_this_capture): Handle NSDMI
and non-class scopes.

From-SVN: r196437
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this10.C [new file with mode: 0644]