OSDN Git Service

* pt.c (register_specialization): Check DECL_TEMPLATE_SPECIALIZATION
authorlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Aug 2004 15:42:29 +0000 (15:42 +0000)
committerlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Aug 2004 15:42:29 +0000 (15:42 +0000)
before calling comp_template_args.

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

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

index 372c27e..9897a9f 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       * pt.c (register_specialization): Check DECL_TEMPLATE_SPECIALIZATION
+       before calling comp_template_args.
+
 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
 
        * class.c (build_vtbl_initializer): Use build_int_cst for
index 34ea3a6..dd88b98 100644 (file)
@@ -1079,8 +1079,8 @@ register_specialization (tree spec, tree tmpl, tree args)
         more convenient to simply allow this than to try to prevent it.  */
       if (fn == spec)
        return spec;
-      else if (comp_template_args (TREE_PURPOSE (s), args)
-              && DECL_TEMPLATE_SPECIALIZATION (spec))
+      else if (DECL_TEMPLATE_SPECIALIZATION (spec)
+              && comp_template_args (TREE_PURPOSE (s), args))
        {
          if (DECL_TEMPLATE_INSTANTIATION (fn))
            {