projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5945fa
)
(push_init_level): Update constructor_depth when we push spelling
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 26 Apr 1995 12:04:28 +0000
(08:04 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 26 Apr 1995 12:04:28 +0000
(08:04 -0400)
level.
From-SVN: r9471
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 6cfc77702cbc227535b722616d370ff9565adef0..fd0eae04cfaf400d1a767d4f7abb16f8808abe0d 100644
(file)
--- 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;