* pt.c (mark_decl_instantiated): Set TREE_SYMBOL_REFERENCED.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67725
138bc75d-0d04-0410-961f-
82ee72b054a4
set correctly by tsubst. */
TREE_PUBLIC (result) = 1;
+ /* This might have been set by an earlier implicit instantiation. */
+ DECL_COMDAT (result) = 0;
+
if (! extern_p)
{
DECL_INTERFACE_KNOWN (result) = 1;
--- /dev/null
+// Bug 10968: implicit instantiation overrides explicit instantiation
+// { dg-final { scan-assembler "_Z1fIiET_S0_" } }
+
+template <class T> T f (T t) { return t; }
+inline void g () { f (4); }
+template int f (int);