diff options
author | Jason Merrill <jason@redhat.com> | 2014-12-18 17:22:36 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-12-18 17:22:36 -0500 |
commit | 1b82e09e18d5c5f1e73b457864f1a310fcfb3f77 (patch) | |
tree | fcdad855f49a11d103ea1e3fa6828d7f90bcabc9 /gcc/cp/decl2.c | |
parent | 03b9b5ce20cb3f613a28fc5dc4cb8a9eaf422ce5 (diff) | |
download | gcc-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.c | 2 |
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. */ |