aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-12-18 17:22:36 -0500
committerJason Merrill <jason@gcc.gnu.org>2014-12-18 17:22:36 -0500
commit1b82e09e18d5c5f1e73b457864f1a310fcfb3f77 (patch)
treefcdad855f49a11d103ea1e3fa6828d7f90bcabc9 /gcc/cp/decl2.c
parent03b9b5ce20cb3f613a28fc5dc4cb8a9eaf422ce5 (diff)
downloadgcc-1b82e09e18d5c5f1e73b457864f1a310fcfb3f77.zip
gcc-1b82e09e18d5c5f1e73b457864f1a310fcfb3f77.tar.gz
gcc-1b82e09e18d5c5f1e73b457864f1a310fcfb3f77.tar.bz2
re PR c++/64251 (Chromium build error only with --enable-checking=yes)
PR c++/64251 * decl2.c (mark_used): Don't mark if in_template_function. From-SVN: r218876
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index b2123f2..69201b0 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -5017,7 +5017,7 @@ mark_used (tree decl, tsubst_flags_t complain)
--function_depth;
}
- if (processing_template_decl)
+ if (processing_template_decl || in_template_function ())
return true;
/* Check this too in case we're within instantiate_non_dependent_expr. */