From 5cb1bea4ae18475ac4f21dc21cb1cafa8f3fc565 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 8 Mar 2000 11:00:00 -0500 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 ++++++- gcc/expr.c | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d76abafc907..4b36c413815 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,11 @@ +2000-03-08 Jason Merrill + + * expr.c (expand_expr, case ARRAY_REF): Still check for missing + CONSTRUCTOR element. + 2000-03-08 Gavin Romig-Koch - * 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. diff --git a/gcc/expr.c b/gcc/expr.c index 321abd79831..7b362b010fc 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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)) ;