Harti Brandt <[EMAIL PROTECTED]> writes:

> This should be
> 
> struct foo {
>       char array[];
> };
> 
> according to C-99, on which gcc2 barfs. Don't know, whether gcc3 can
> handle this.

C-99 requires a fully specified type before the unspecified array (and
requires said array to be the last element in the structure).  So this
example is *not* valid in C99, but the following would be:

struct foo {
        int bar;
        char array[];
};

[Which makes sense; it forces a structure to have a non-zero size.]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to