aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index c4fed168269..b503e9743cf 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -1040,9 +1040,9 @@ maybe_add_lambda_conv_op (tree type)
bool const generic_lambda_p = generic_lambda_fn_p (callop);
- if (!generic_lambda_p && DECL_INITIAL (callop) == NULL_TREE)
+ if (!generic_lambda_p && undeduced_auto_decl (callop))
{
- /* If the op() wasn't instantiated due to errors, give up. */
+ /* If the op() wasn't deduced due to errors, give up. */
gcc_assert (errorcount || sorrycount);
return;
}