aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-04-26 08:04:28 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-04-26 08:04:28 -0400
commite4376e63ac291d3e6f651162f6af464fe3eca563 (patch)
tree099603f7954419b3ad596bdf67509997a9a6319d
parentf5945faf823a73019f05288e0d64135cf08ab8f7 (diff)
downloadgcc-e4376e63ac291d3e6f651162f6af464fe3eca563.zip
gcc-e4376e63ac291d3e6f651162f6af464fe3eca563.tar.gz
gcc-e4376e63ac291d3e6f651162f6af464fe3eca563.tar.bz2
(push_init_level): Update constructor_depth when we push spelling
level. From-SVN: r9471
-rw-r--r--gcc/c-typeck.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 6cfc777..fd0eae0 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -5284,6 +5284,7 @@ push_init_level (implicit)
{
constructor_type = TREE_TYPE (constructor_fields);
push_member_name (constructor_fields);
+ constructor_depth++;
if (constructor_fields != constructor_unfilled_fields)
constructor_incremental = 0;
}
@@ -5292,6 +5293,7 @@ push_init_level (implicit)
{
constructor_type = TREE_TYPE (constructor_type);
push_array_bounds (TREE_INT_CST_LOW (constructor_index));
+ constructor_depth++;
if (! tree_int_cst_equal (constructor_index, constructor_unfilled_index)
|| constructor_range_end != 0)
constructor_incremental = 0;