This is the mail archive of the
mailing list for the GCC project.
Re: C99 conformance bug in gcc-3.1
On 30-May-2002, Tony Finch <firstname.lastname@example.org> wrote:
> On Thu, May 30, 2002 at 11:46:30PM +1000, Fergus Henderson wrote:
> > Reading more, I see that according to ISO C99, it's a constraint violation
> > to put such a structure in an array (see 188.8.131.52/[#2]).
> Also 184.108.40.206p1 (since such structures have an incomplete type).
No, structures containing flexible array members don't have incomplete types.
(If they did, it would be a constraint error to apply `sizeof' to them.)
Fergus Henderson <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.