mirror of git://gcc.gnu.org/git/gcc.git
revert: pt.c (lookup_template_class): Don't mess with DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations.
Revert: * pt.c (lookup_template_class): Don't mess with DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations. From-SVN: r160401
This commit is contained in:
parent
b0a421e8c1
commit
2f86b26a4f
|
@ -9,9 +9,6 @@
|
||||||
(instantiate_class_template): Use it.
|
(instantiate_class_template): Use it.
|
||||||
* search.c (lookup_base): Use it.
|
* search.c (lookup_base): Use it.
|
||||||
|
|
||||||
* 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,10 +6723,9 @@ 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. */
|
||||||
if (use_partial_inst_tmpl)
|
DECL_TEMPLATE_INSTANTIATIONS (templ)
|
||||||
DECL_TEMPLATE_INSTANTIATIONS (templ)
|
= tree_cons (arglist, t,
|
||||||
= tree_cons (arglist, t,
|
DECL_TEMPLATE_INSTANTIATIONS (templ));
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue