Commit 55cdb6b6 by Jason Merrill Committed by Jason Merrill

pt.c (lookup_template_class): Don't mess with DECL_TEMPLATE_INSTANTIATIONS…

pt.c (lookup_template_class): Don't mess with DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations.

	* pt.c (lookup_template_class): Don't mess with
	DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations.

From-SVN: r160397
parent 390b2b32
2010-06-07 Jason Merrill <jason@redhat.com>
* pt.c (lookup_template_class): Don't mess with
DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations.
2010-06-07 Jakub Jelinek <jakub@redhat.com> 2010-06-07 Jakub Jelinek <jakub@redhat.com>
PR c++/44444 PR c++/44444
......
...@@ -6723,9 +6723,10 @@ lookup_template_class (tree d1, ...@@ -6723,9 +6723,10 @@ lookup_template_class (tree d1,
/* Note this use of the partial instantiation so we can check it /* Note this use of the partial instantiation so we can check it
later in maybe_process_partial_specialization. */ later in maybe_process_partial_specialization. */
DECL_TEMPLATE_INSTANTIATIONS (templ) if (use_partial_inst_tmpl)
= tree_cons (arglist, t, DECL_TEMPLATE_INSTANTIATIONS (templ)
DECL_TEMPLATE_INSTANTIATIONS (templ)); = tree_cons (arglist, t,
DECL_TEMPLATE_INSTANTIATIONS (templ));
if (TREE_CODE (t) == ENUMERAL_TYPE && !is_dependent_type) if (TREE_CODE (t) == ENUMERAL_TYPE && !is_dependent_type)
/* Now that the type has been registered on the instantiations /* Now that the type has been registered on the instantiations
......
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