* pt.c (process_template_parm): Remove superfluous temporary.
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Sat, 6 May 2006 00:44:29 +0000 (00:44 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sat, 6 May 2006 00:44:29 +0000 (00:44 +0000)
From-SVN: r113573

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

index 2fcb8934171d67cc7c0ceaae2406061fdad3df0f..4f460a37e8631204150eca92d133fc26d2371c9d 100644 (file)
@@ -1,5 +1,7 @@
 2006-05-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
+       * pt.c (process_template_parm): Remove superfluous temporary.
+
        PR c++/27430
        * pt.c (process_template_parm): Handle erroneous non-type parameters.
 
index 614de414cc0c3135bfb103f3d409bc68d186cde5..c7d94f1a7bae9451db3fe5cefb733b6e2e827da3 100644 (file)
@@ -2312,19 +2312,17 @@ reduce_template_parm_level (tree index, tree type, int levels)
   return TEMPLATE_PARM_DESCENDANTS (index);
 }
 
-/* Process information from new template parameter NEXT and append it to the
+/* Process information from new template parameter PARM and append it to the
    LIST being built.  This new parameter is a non-type parameter iff
    IS_NON_TYPE is true.  */
 
 tree
-process_template_parm (tree list, tree next, bool is_non_type)
+process_template_parm (tree list, tree parm, bool is_non_type)
 {
-  tree parm;
   tree decl = 0;
   tree defval;
   int idx;
 
-  parm = next;
   gcc_assert (TREE_CODE (parm) == TREE_LIST);
   defval = TREE_PURPOSE (parm);