Commit 4de02abd by Mark Mitchell Committed by Jason Merrill

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
parent 51ca169b
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment