From 4c0924efd8f9cfb548e09532eb7d471ab815549b Mon Sep 17 00:00:00 2001 From: abutcher Date: Mon, 23 Sep 2013 22:43:15 +0000 Subject: [PATCH] Support nested generic lambdas. * lambda.c (maybe_add_lambda_conv_op): Don't check for instantiated callop in the case of generic lambdas. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202848 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/lambda.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7de3018..c97cb45 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,10 @@ 2013-09-23 Adam Butcher + * lambda.c (maybe_add_lambda_conv_op): Don't check for instantiated + callop in the case of generic lambdas. + +2013-09-23 Adam Butcher + * parser.c (make_generic_type_name): Use global count rather than parameter and ... (add_implicit_template_parms): ... propagate interface change here. diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index b04448b..2ffa7e0 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -810,7 +810,7 @@ maybe_add_lambda_conv_op (tree type) = (DECL_TEMPLATE_INFO (callop) && DECL_TEMPLATE_RESULT (DECL_TI_TEMPLATE (callop)) == callop); - if (DECL_INITIAL (callop) == NULL_TREE) + if (!generic_lambda_p && DECL_INITIAL (callop) == NULL_TREE) { /* If the op() wasn't instantiated due to errors, give up. */ gcc_assert (errorcount || sorrycount); -- 2.7.4