]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/60992 (ICE in tsubst_copy, at cp/pt.c:12637)
authorJason Merrill <jason@redhat.com>
Fri, 2 May 2014 19:47:40 +0000 (15:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 2 May 2014 19:47:40 +0000 (15:47 -0400)
commit43b781fac7673ac9f11105048ccc2a75c8a9f0c3
tree5f8a43ce0d7d633ca950be8f18dfbaf9acef0cbf
parent62da5a07b2f56f860e70c9bb66791ac665bf14d8
re PR c++/60992 (ICE in tsubst_copy, at cp/pt.c:12637)

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.

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