aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1997-10-23 09:55:55 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-10-23 05:55:55 -0400
commit7b4f18a3817f6d4016a9c8caac30a0ca9cc376dd (patch)
tree56ad63a407a7cad9bf0053f715f2f2476cd0cbb5
parent56bf1fd97aba55f54aa2ccc73768fc6160210d6e (diff)
downloadgcc-7b4f18a3817f6d4016a9c8caac30a0ca9cc376dd.zip
gcc-7b4f18a3817f6d4016a9c8caac30a0ca9cc376dd.tar.gz
gcc-7b4f18a3817f6d4016a9c8caac30a0ca9cc376dd.tar.bz2
pt.c (instantiate_decl): SET_DECL_IMPLICIT_INSTANTIATION on new decl.
* pt.c (instantiate_decl): SET_DECL_IMPLICIT_INSTANTIATION on new decl. Fixes libstdc++ failure. From-SVN: r16153
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/pt.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ca3ef80..a1bb470 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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):
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index e960f13..1d16bb2 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -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. */