This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r193954 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 29 Nov 2012 20:13:00 -0000
- Subject: r193954 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
Author: jason
Date: Thu Nov 29 20:12:58 2012
New Revision: 193954
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193954
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c