This is the mail archive of the
mailing list for the GCC project.
Re: C99 conformance bug in gcc-3.1
On Fri, May 31, 2002 at 12:01:06AM +1000, Fergus Henderson wrote:
> On 30-May-2002, Tony Finch <email@example.com> 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 220.127.116.11/[#2]).
> > Also 18.104.22.168p1 (since such structures have an incomplete type).
> No, structures containing flexible array members don't have incomplete types.
What about 6.2.5p23?
> (If they did, it would be a constraint error to apply `sizeof' to them.)
This appears to be an error in the standard :-)
f.a.n.finch <firstname.lastname@example.org> http://dotat.at/
FASTNET: SOUTHWEST BACKING SOUTH 4 OR 5. MAINLY FAIR. GOOD.