* decl2.c (mark_used): Don't mark if in_template_function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218876
138bc75d-0d04-0410-961f-
82ee72b054a4
+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);
+}