re PR c++/63601 (Segfault on usage of 'this' in unevaluated context inside lambda)
authorJason Merrill <jason@redhat.com>
Mon, 20 Oct 2014 17:29:02 +0000 (13:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Oct 2014 17:29:02 +0000 (13:29 -0400)
commit2bf492a1a4526f143064e41001f34fc1874feea7
treed36f2c6f7a0499a4eebd7a3cca9991eda2ffdf69
parent64dbfdec39c675bd644748af3cd712418bd11135
re PR c++/63601 (Segfault on usage of 'this' in unevaluated context inside lambda)

PR c++/63601
* lambda.c (current_nonlambda_function): New.
* semantics.c (finish_this_expr): Use it.
* cp-tree.h: Declare it.

From-SVN: r216488
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/lambda.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this20.C [new file with mode: 0644]