aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mmitchell@usa.net>1997-12-08 06:41:17 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-12-08 01:41:17 -0500
commit4de02abdfd542f3d1fcbaefcc1441327ce4ff8c1 (patch)
tree7fb5902b09776396c397399bb684fabcc8bcae4e
parent51ca169b6ec802f7be2037c182a4851814b8530e (diff)
downloadgcc-4de02abdfd542f3d1fcbaefcc1441327ce4ff8c1.zip
gcc-4de02abdfd542f3d1fcbaefcc1441327ce4ff8c1.tar.gz
gcc-4de02abdfd542f3d1fcbaefcc1441327ce4ff8c1.tar.bz2
pt.c (lookup_template_function): Copy the template arguments...
* pt.c (lookup_template_function): Copy the template arguments, not just the list containing them, to the permanent obstack. From-SVN: r17006
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8476d56..2b9a24f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+Sun Dec 7 22:38:12 1997 Mark Mitchell <mmitchell@usa.net>
+
+ * pt.c (lookup_template_function): Copy the template arguments,
+ not just the list containing them, to the permanent obstack.
+
Sun Dec 7 15:53:06 1997 Jason Merrill <jason@yorick.cygnus.com>
* except.c (expand_start_catch_block): suspend_momentary for the
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index f9f5017..c35dc20 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -1326,11 +1326,7 @@ lookup_template_function (fns, arglist)
}
if (arglist != NULL_TREE && !TREE_PERMANENT (arglist))
- {
- push_obstacks (&permanent_obstack, &permanent_obstack);
- arglist = copy_list (arglist);
- pop_obstacks ();
- }
+ copy_to_permanent (arglist);
return build_min (TEMPLATE_ID_EXPR,
TREE_TYPE (fns)