PR c++/60992
commit384b041805a3343b4eff7076e8621a84ac03d338
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 May 2014 19:47:40 +0000 (2 19:47 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 May 2014 19:47:40 +0000 (2 19:47 +0000)
tree5f8a43ce0d7d633ca950be8f18dfbaf9acef0cbf
parentea8c0aad06e706a563cd1bd5fdcbc52c2e59a8f9
PR c++/60992
* lambda.c (lambda_capture_field_type): Wrap anything dependent
other than 'this'.
(add_capture): Check for VLA before calling it.
* semantics.c (is_this_parameter): Accept any 'this' parameter, not
just the current one.  Make non-static.
* cp-tree.h: Declare it.
* pt.c (tsubst_copy) [VAR_DECL]: Also build a new VAR_DECL if
the operand was static or constant.

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