From 7b4f18a3817f6d4016a9c8caac30a0ca9cc376dd Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 23 Oct 1997 09:55:55 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/pt.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ca3ef801b5a..a1bb4702659 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 23 02:01:30 1997 Jason Merrill + + * pt.c (instantiate_decl): SET_DECL_IMPLICIT_INSTANTIATION on new decl. + 1997-10-22 Brendan Kehoe * method.c (build_template_parm_names, build_decl_overload_real): diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e960f131707..1d16bb2de0e 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. */ -- 2.30.2