From: Mark Mitchell Date: Mon, 8 Dec 1997 06:41:17 +0000 (+0000) Subject: pt.c (lookup_template_function): Copy the template arguments... X-Git-Tag: releases/libf2c-0.5.21~421 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4de02abdfd542f3d1fcbaefcc1441327ce4ff8c1;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8476d56a1cb1..2b9a24f24350 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 f9f501728b54..c35dc2089633 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)