]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Jun 2010 20:55:43 +0000 (20:55 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Jun 2010 20:55:43 +0000 (20:55 +0000)
* pt.c (lookup_template_class): Don't mess with
DECL_TEMPLATE_INSTANTIATIONS except for partial instantiations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160401 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/pt.c

index 5f74ab9ce32b4966c4dc8c161d8564f3a702b3db..77d7c5112695156a7614427a24c1f179e400018d 100644 (file)
@@ -9,9 +9,6 @@
        (instantiate_class_template): 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>
 
        PR c++/44444
index b62a9bc695f4f3020dde8c326c4cbfdd6839207e..d66c1bf6e2b2409146c46151757b55b4b5ae598d 100644 (file)
@@ -6723,10 +6723,9 @@ lookup_template_class (tree d1,
 
       /* Note this use of the partial instantiation so we can check it
         later in maybe_process_partial_specialization.  */
-      if (use_partial_inst_tmpl)
-       DECL_TEMPLATE_INSTANTIATIONS (templ)
-         = 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)
        /* Now that the type has been registered on the instantiations