aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAdam Butcher <adam@jessamine.co.uk>2013-09-23 23:43:15 +0100
committerAdam Butcher <abutcher@gcc.gnu.org>2013-09-23 23:43:15 +0100
commit162b25fa1b382102f85ecdd804f8635eaa6a43aa (patch)
treea010bc8a9aee168ef68cc54a9518e2c3b16dad30 /gcc
parent707df8ad64e1ded5a1d0b29af6abc43acb7b9a3e (diff)
downloadgcc-162b25fa1b382102f85ecdd804f8635eaa6a43aa.zip
gcc-162b25fa1b382102f85ecdd804f8635eaa6a43aa.tar.gz
gcc-162b25fa1b382102f85ecdd804f8635eaa6a43aa.tar.bz2
Support nested generic lambdas.
* lambda.c (maybe_add_lambda_conv_op): Don't check for instantiated callop in the case of generic lambdas. From-SVN: r202848
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/lambda.c2
2 files changed, 6 insertions, 1 deletions
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 <adam@jessamine.co.uk>
+ * lambda.c (maybe_add_lambda_conv_op): Don't check for instantiated
+ callop in the case of generic lambdas.
+
+2013-09-23 Adam Butcher <adam@jessamine.co.uk>
+
* 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);