]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-12-16 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 21:45:14 +0000 (21:45 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 21:45:14 +0000 (21:45 +0000)
* pt.c (comp_template_args): Remove.
(comp_template_args_with_info): Rename to comp_template_args;
not static.
(add_pending_template): Adjust call.
* cp-tree.h (comp_template_args): Add default arguments.

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

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c

index 488b2ad0ad01fb88722473929f13f769b298822b..46b67125a5b893499a33a4ee7c7df370f821e42a 100644 (file)
@@ -1,3 +1,11 @@
+2015-12-16  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * pt.c (comp_template_args): Remove.
+       (comp_template_args_with_info): Rename to comp_template_args;
+       not static.
+       (add_pending_template): Adjust call.
+       * cp-tree.h (comp_template_args): Add default arguments.
+
 2015-12-16  Jason Merrill  <jason@redhat.com>
 
        PR c++/68309
index d5e3acdb67a51d488aa520561ea6a9b28339afbd..058324f32a585b3acfbc6e27256be3a1ec243732 100644 (file)
@@ -6115,7 +6115,8 @@ extern int template_class_depth                   (tree);
 extern int is_specialization_of                        (tree, tree);
 extern bool is_specialization_of_friend                (tree, tree);
 extern tree get_pattern_parm                   (tree, tree);
-extern int comp_template_args                  (tree, tree);
+extern int comp_template_args                  (tree, tree, tree * = NULL,
+                                                tree * = NULL);
 extern tree maybe_process_partial_specialization (tree);
 extern tree most_specialized_instantiation     (tree);
 extern void print_candidates                   (tree);
index 5cf2497f79a2d5d00c415b471ecbb659eac4435d..da57fb2a45c6e4e2a5ac91ebb77d1389434dbc52 100644 (file)
@@ -7881,9 +7881,9 @@ template_args_equal (tree ot, tree nt)
    template arguments.  Returns 0 otherwise, and updates OLDARG_PTR and
    NEWARG_PTR with the offending arguments if they are non-NULL.  */
 
-static int
-comp_template_args_with_info (tree oldargs, tree newargs,
-                             tree *oldarg_ptr, tree *newarg_ptr)
+int
+comp_template_args (tree oldargs, tree newargs,
+                   tree *oldarg_ptr, tree *newarg_ptr)
 {
   int i;
 
@@ -7913,15 +7913,6 @@ comp_template_args_with_info (tree oldargs, tree newargs,
   return 1;
 }
 
-/* Returns 1 iff the OLDARGS and NEWARGS are in fact identical sets
-   of template arguments.  Returns 0 otherwise.  */
-
-int
-comp_template_args (tree oldargs, tree newargs)
-{
-  return comp_template_args_with_info (oldargs, newargs, NULL, NULL);
-}
-
 static void
 add_pending_template (tree d)
 {
@@ -19051,8 +19042,8 @@ unify_pack_expansion (tree tparms, tree targs, tree packed_parms,
          tree bad_old_arg = NULL_TREE, bad_new_arg = NULL_TREE;
          tree old_args = ARGUMENT_PACK_ARGS (old_pack);
 
-         if (!comp_template_args_with_info (old_args, new_args,
-                                            &bad_old_arg, &bad_new_arg))
+         if (!comp_template_args (old_args, new_args,
+                                  &bad_old_arg, &bad_new_arg))
            /* Inconsistent unification of this parameter pack.  */
            return unify_parameter_pack_inconsistent (explain_p,
                                                      bad_old_arg,