From 4de02abdfd542f3d1fcbaefcc1441327ce4ff8c1 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 8 Dec 1997 06:41:17 +0000 Subject: 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/pt.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'gcc') 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 + + * 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 * 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) -- cgit v1.1