diff options
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 7dd98c07e0e..1a604a459b1 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -4606,7 +4606,7 @@ mark_used (tree decl) --function_depth; } - if (processing_template_decl) + if (processing_template_decl || in_template_function ()) return true; /* Check this too in case we're within fold_non_dependent_expr. */ |