* pt.c (iterative_hash_template_arg): Use cp_tree_operand_length.
authorJason Merrill <jason@redhat.com>
Fri, 1 Jul 2011 00:03:43 +0000 (20:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Jul 2011 00:03:43 +0000 (20:03 -0400)
From-SVN: r175737

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

index 70b6f779bf6c7149394a561e9c5cb6155488a9b8..c2ebf9a38cbd36b8b86407617b5841389940d0d2 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-30  Jason Merrill  <jason@redhat.com>
 
+       * pt.c (iterative_hash_template_arg): Use cp_tree_operand_length.
+
        PR c++/49355
        * tree.c (stabilize_init): Handle aggregate initialization.
 
index dc6cd5086d53e4ec39c164e7280970fe3315ce31..4903044ff70d280a07c9472503b104e2c8348dac 100644 (file)
@@ -1609,7 +1609,7 @@ iterative_hash_template_arg (tree arg, hashval_t val)
     default:
       gcc_assert (IS_EXPR_CODE_CLASS (tclass));
       {
-       unsigned n = TREE_OPERAND_LENGTH (arg);
+       unsigned n = cp_tree_operand_length (arg);
        for (i = 0; i < n; ++i)
          val = iterative_hash_template_arg (TREE_OPERAND (arg, i), val);
        return val;