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 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.
(If they did, it would be a constraint error to apply `sizeof' to them.)
--
Fergus Henderson <fjh@cs.mu.oz.au> | "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.