Commit 1b82e09e by Jason Merrill Committed by Jason Merrill

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
parent 03b9b5ce
2014-12-18 Jason Merrill <jason@redhat.com>
PR c++/64251
* decl2.c (mark_used): Don't mark if in_template_function.
2014-12-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60955
......
......@@ -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. */
......
// PR c++/64251
class DictionaryValue {};
template <typename T> void CreateValue(T) {
DictionaryValue(0);
CreateValue(0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment