expr.c (expand_expr, [...]): Still check for missing CONSTRUCTOR element.

* expr.c (expand_expr, case ARRAY_REF): Still check for missing
        CONSTRUCTOR element.

From-SVN: r32423
This commit is contained in:
Jason Merrill 2000-03-08 11:00:00 -05:00
parent 967561999c
commit 5cb1bea4ae
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,11 @@
2000-03-08 Jason Merrill <jason@casey.cygnus.com>
* expr.c (expand_expr, case ARRAY_REF): Still check for missing
CONSTRUCTOR element.
2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
* config/mips/mips.c (mips_expand_prologue): If the last
* mips.c (mips_expand_prologue): If the last
named argument is the vararg marker "va_list", treat it as
an unnamed argument.

View File

@ -6523,7 +6523,8 @@ expand_expr (exp, target, tmode, modifier)
tree elem = CONSTRUCTOR_ELTS (init);
for (elem = CONSTRUCTOR_ELTS (init);
! tree_int_cst_equal (TREE_PURPOSE (elem), index);
(elem
&& !tree_int_cst_equal (TREE_PURPOSE (elem), index));
elem = TREE_CHAIN (elem))
;