From 98ff3996628e649bd2ae54f0d68e47395ee51db9 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 30 Jun 2011 20:03:43 -0400 Subject: [PATCH] * pt.c (iterative_hash_template_arg): Use cp_tree_operand_length. From-SVN: r175737 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/pt.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 70b6f779bf6..c2ebf9a38cb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2011-06-30 Jason Merrill + * pt.c (iterative_hash_template_arg): Use cp_tree_operand_length. + PR c++/49355 * tree.c (stabilize_init): Handle aggregate initialization. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index dc6cd5086d5..4903044ff70 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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; -- 2.30.2