PR c++/53137
commit3c3f480eb1c70f05275cdf3cb45f7bce9780ad8d
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 20:12:58 +0000 (29 20:12 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 20:12:58 +0000 (29 20:12 +0000)
tree05084cfe0755772b905267bbc58f2fb915f992d8
parentdedecfbe18c2183ac28f9a66f0b094a6d09c51e9
PR c++/53137
* pt.c (tsubst_expr) [DECL_EXPR]: Set LAMBDA_EXPR_THIS_CAPTURE here.
(tsubst_copy_and_build) [LAMBDA_EXPR]: And clear it here.
(instantiate_class_template_1): Not here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193954 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this6.C [new file with mode: 0644]