From d22c85969b4555d97d16a2f6704bf57b7d712cd3 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 11 Oct 1996 20:19:33 +0000 Subject: 89th Cygnus<->FSF quick merge From-SVN: r12953 --- gcc/cp/pt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/cp/pt.c') diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 5b7caf37fbe..99943e22f0b 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1434,7 +1434,11 @@ tsubst (t, args, nargs, in_decl) if (type == TREE_TYPE (t) && (! member || ctx == DECL_CLASS_CONTEXT (t))) - return t; + { + t = copy_node (t); + copy_lang_decl (t); + return t; + } /* Do we already have this instantiation? */ if (DECL_TEMPLATE_INFO (t) != NULL_TREE) -- cgit v1.2.1