pt.c (instantiate_decl): SET_DECL_IMPLICIT_INSTANTIATION on new decl.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 23 Oct 1997 09:55:55 +0000 (09:55 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 23 Oct 1997 09:55:55 +0000 (05:55 -0400)
* pt.c (instantiate_decl): SET_DECL_IMPLICIT_INSTANTIATION on new decl.

Fixes libstdc++ failure.

From-SVN: r16153

gcc/cp/ChangeLog
gcc/cp/pt.c

index ca3ef801b5a7fda6b99f573534ab80ec07f5a8f2..a1bb4702659e7aba2796e9833589d111ea235061 100644 (file)
@@ -1,3 +1,7 @@
+Thu Oct 23 02:01:30 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * pt.c (instantiate_decl): SET_DECL_IMPLICIT_INSTANTIATION on new decl.
+
 1997-10-22  Brendan Kehoe  <brendan@cygnus.com>
 
        * method.c (build_template_parm_names, build_decl_overload_real):
index e960f131707de61650dd97a6b58bc7058449b607..1d16bb2de0ef801bc6d9f7223fd811a370e653b8 100644 (file)
@@ -4510,6 +4510,7 @@ instantiate_decl (d)
   save_ti = DECL_TEMPLATE_INFO (decl_pattern);
   DECL_TEMPLATE_INFO (decl_pattern) = NULL_TREE;
   td = tsubst (decl_pattern, args, TREE_VEC_LENGTH (args), tmpl);
+  SET_DECL_IMPLICIT_INSTANTIATION (td);
   DECL_TEMPLATE_INFO (decl_pattern) = save_ti;
 
   /* And set up DECL_INITIAL, since tsubst doesn't.  */