OSDN Git Service

* pt.c (check_nontype_parm): Rename to ...
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Jan 2001 16:18:43 +0000 (16:18 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Jan 2001 16:18:43 +0000 (16:18 +0000)
(invalid_nontype_parm_type_p): ... here.
(process_template_parm): Adjust.
(convert_template_argument): Adjust.

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

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

index 0eb13f8..bd54df0 100644 (file)
@@ -1,5 +1,12 @@
 2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * pt.c (check_nontype_parm): Rename to ...
+       (invalid_nontype_parm_type_p): ... here.
+       (process_template_parm): Adjust.
+       (convert_template_argument): Adjust.
+
+2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
+
        * pt.c (check_nontype_parm): New function.
        (process_template_parm): Use it.
        (convert_template_argument): Use it.
index 8c492d5..1463dbe 100644 (file)
@@ -169,7 +169,7 @@ static tree for_each_template_parm_r PARAMS ((tree *, int *, void *));
 static tree instantiate_clone PARAMS ((tree, tree));
 static tree copy_default_args_to_explicit_spec_1 PARAMS ((tree, tree));
 static void copy_default_args_to_explicit_spec PARAMS ((tree));
-static int check_nontype_parm PARAMS ((tree, int));
+static int invalid_nontype_parm_type_p PARAMS ((tree, int));
 
 /* Called once to initialize pt.c.  */
 
@@ -1934,7 +1934,7 @@ process_template_parm (list, next)
 
       /* A template parameter is not modifiable.  */
       TREE_READONLY (parm) = 1;
-      if (check_nontype_parm (TREE_TYPE (parm), 1))
+      if (invalid_nontype_parm_type_p (TREE_TYPE (parm), 1))
         TREE_TYPE (parm) = void_type_node;
       decl = build_decl (CONST_DECL, DECL_NAME (parm), TREE_TYPE (parm));
       DECL_INITIAL (parm) = DECL_INITIAL (decl) 
@@ -3417,7 +3417,7 @@ convert_template_argument (parm, arg, args, complain, i, in_decl)
     {
       tree t = tsubst (TREE_TYPE (parm), args, complain, in_decl);
 
-      if (check_nontype_parm (t, complain))
+      if (invalid_nontype_parm_type_p (t, complain))
         return error_mark_node;
       
       if (processing_template_decl)
@@ -10307,7 +10307,7 @@ current_instantiation ()
    non-zero, then complain. */
 
 static int
-check_nontype_parm (type, complain)
+invalid_nontype_parm_type_p (type, complain)
      tree type;
      int complain;
 {