Commit 333a5dae by Per Bothner

In the case of {[LO .. HI] = VALUE}, only evaluate VALUE once.

From-SVN: r8358
parent 8be3ef7d
......@@ -6168,6 +6168,10 @@ process_init_element (value)
break;
}
/* In the case of [LO .. HI] = VALUE, only evaluate VALUE once. */
if (constructor_range_end)
value = save_expr (value);
/* Now output the actual element.
Ordinarily, output once.
If there is a range, repeat it till we advance past the range. */
......
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