This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Zero-length arrays
On Thu, Jan 04, 2001 at 11:34:42AM -0800, Ulrich Drepper wrote:
> You mean disallowing a zero array size and disallowing the number of
> initializers being greater than the given array size? This is of
> course OK, we never consciously did this.
Actually, I was talking about this in the context of allowing
struct f {
int w;
int x[];
} f = { 1, { 2, 3, 4 } };
but disallowing
struct f {
int w;
int x[0];
} f = { 1, { 2, 3, 4 } };
since "clearly" X has zero elements.
r~