summaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1996-10-11 20:19:33 +0000
committerMike Stump <mrs@gcc.gnu.org>1996-10-11 20:19:33 +0000
commitd22c85969b4555d97d16a2f6704bf57b7d712cd3 (patch)
tree831fede3889f6c6924b3d0336991173527a83689 /gcc/cp/pt.c
parent3d4683cb70b1f1f075e7d2c1f865de215f25679d (diff)
downloadgcc-d22c85969b4555d97d16a2f6704bf57b7d712cd3.tar.gz
89th Cygnus<->FSF quick merge
From-SVN: r12953
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c6
1 files changed, 5 insertions, 1 deletions
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)