Re: C PATCH for PR64856 (initializing range of elements in C99)

2015-02-09 Thread Richard Henderson
On 02/09/2015 11:51 AM, Marek Polacek wrote: > We reject the following testcase in C99 mode, because in C99 we always > wrap COMPOUND_LITERAL_EXPR in a SAVE_EXPR when initializing a range of > elements, even though the expression is required to be constant. As a > consequence, we error out with "i

C PATCH for PR64856 (initializing range of elements in C99)

2015-02-09 Thread Marek Polacek
We reject the following testcase in C99 mode, because in C99 we always wrap COMPOUND_LITERAL_EXPR in a SAVE_EXPR when initializing a range of elements, even though the expression is required to be constant. As a consequence, we error out with "initializer element is not constant". It's been like t