https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61566
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Aug 20 01:17:37 2014 New Revision: 214206 URL: https://gcc.gnu.org/viewcvs?rev=214206&root=gcc&view=rev Log: PR c++/61566 * pt.c (instantiate_class_template_1): Ignore lambda on CLASSTYPE_DECL_LIST. (push_template_decl_real): A lambda is not primary. * lambda.c (maybe_add_lambda_conv_op): Distinguish between being currently in a function and the lambda living in a function. Modified: branches/gcc-4_9-branch/gcc/cp/ChangeLog branches/gcc-4_9-branch/gcc/cp/lambda.c branches/gcc-4_9-branch/gcc/cp/pt.c branches/gcc-4_9-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template13.C