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
This commit is contained in:
Adam Butcher 2013-09-23 23:43:15 +01:00 committed by Adam Butcher
parent 707df8ad64
commit 162b25fa1b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);