diff options
Diffstat (limited to 'gcc/cp/class.c')
| -rw-r--r-- | gcc/cp/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index f566384..c4887f1 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -6671,7 +6671,7 @@ dump_array (FILE * stream, tree decl) TFF_PLAIN_IDENTIFIER)); fprintf (stream, "\n"); - for (ix = 0, inits = TREE_OPERAND (DECL_INITIAL (decl), 1); + for (ix = 0, inits = CONSTRUCTOR_ELTS (DECL_INITIAL (decl)); inits; ix++, inits = TREE_CHAIN (inits)) fprintf (stream, "%-4ld %s\n", (long)(ix * elt), expr_as_string (TREE_VALUE (inits), TFF_PLAIN_IDENTIFIER)); |
