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 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?
What about it? I don't see how it is relevant.
Maybe you meant some other section?
| 6.2.5 Types
| ...
| [#23] Array, function, and pointer types are collectively
| called derived declarator types. A declarator type
| derivation from a type T is the construction of a derived
| declarator type from T by the application of an array-type,
| a function-type, or a pointer-type derivation to T.
--
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.