* pt.c (iterative_hash_template_arg): Use cp_tree_operand_length.
From-SVN: r175737
This commit is contained in:
parent
b9d6b0153c
commit
98ff399662
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user