]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/61566 (ICE in write_unscoped_name)
authorJason Merrill <jason@redhat.com>
Fri, 15 Aug 2014 21:59:40 +0000 (17:59 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Aug 2014 21:59:40 +0000 (17:59 -0400)
commit5802281eb634b1efcd139cdb5867a8077e7eca03
treee67cb1575d9bbab9d61cafcb08483a12596b5273
parent5b33845084ba98bc0bc87c7220254b3ab4999ed5
re PR c++/61566 (ICE in write_unscoped_name)

PR c++/61566
* pt.c (instantiate_class_template_1): Ignore lambda on
CLASSTYPE_DECL_LIST.
(push_template_decl_real): A lambda is not primary.
(lookup_template_class_1): Don't look for a lambda partial
instantiation.
* lambda.c (maybe_add_lambda_conv_op): Distinguish between being
currently in a function and the lambda living in a function.
* mangle.c (CLASSTYPE_TEMPLATE_ID_P): False for lambda.

From-SVN: r214046
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/cp/mangle.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template13.C