PR c++/64251
* decl2.c (mark_used): Don't mark if in_template_function.
From-SVN: r218876
+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
--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. */
--- /dev/null
+// PR c++/64251
+
+class DictionaryValue {};
+template <typename T> void CreateValue(T) {
+ DictionaryValue(0);
+ CreateValue(0);
+}