Commit 792089b3 by Richard Kenner

(pop_init_level): Don't abort if have incomplete array type inside

some other type.

From-SVN: r6295
parent 2f95ebc2
......@@ -5374,11 +5374,6 @@ pop_init_level (implicit)
TYPE_DOMAIN (constructor_type) = build_index_type (maxindex);
TREE_TYPE (maxindex) = TYPE_DOMAIN (constructor_type);
/* We shouldn't have an incomplete array type within
some other type. */
if (constructor_stack->next)
abort ();
if (pedantic
&& tree_int_cst_lt (TYPE_MAX_VALUE (TYPE_DOMAIN (constructor_type)),
integer_zero_node))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment