re PR c++/53137 (g++ segfault)
authorJason Merrill <jason@redhat.com>
Thu, 29 Nov 2012 20:12:58 +0000 (15:12 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 29 Nov 2012 20:12:58 +0000 (15:12 -0500)
commitbc7d0e9006266cf3e0963e7311cf3ba9db56e3d5
tree05084cfe0755772b905267bbc58f2fb915f992d8
parentb4b5e1f715b8e60cc6bd05742e92fb6c85409b84
re PR c++/53137 (g++ segfault)

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.

From-SVN: r193954
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]