On 10/18/2012 06:02 PM, Jason Merrill wrote:
On 10/18/2012 01:15 AM, Paolo Carlini wrote:
If I understand correctly your hesitations, I don't think there are
exceptions to the general rule that if the size of the array is zero
there can be no initializers.
I'm thinking of a testcase like this, which is currently accepted:
struct A
{
int i[0];
int j;
};
struct A a = { 1 };
Here, since i has no elements, we should skip over it and apply the
one initializer to j.
Ah, Ok, I was missing the "skipping" thing ;)
Let me see how we can handle this... it seems tricky.
Paolo.