This is the mail archive of the
gcc@gcc.gnu.org
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 <dot@dotat.at> 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 6.7.2.1/[#2]).
> >
> > Also 6.7.5.2p1 (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 :-)
Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
FASTNET: SOUTHWEST BACKING SOUTH 4 OR 5. MAINLY FAIR. GOOD.