mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 15:05:28 +08:00
class.c (dump_array): Call CONSTRUCTOR_ELTS to access the operand of a CONSTRUCTOR node.
* class.c (dump_array): Call CONSTRUCTOR_ELTS to access the operand of a CONSTRUCTOR node. From-SVN: r67279
This commit is contained in:
parent
fef3106c7b
commit
522801e76c
@ -1,3 +1,8 @@
|
||||
2003-05-31 Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
* class.c (dump_array): Call CONSTRUCTOR_ELTS to access
|
||||
the operand of a CONSTRUCTOR node.
|
||||
|
||||
2003-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||
|
||||
* decl.c (cp_binding_level::this_entity): Rename from this_class.
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user