tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] once again about anonymous struct/union bug


From: Dave Dodge
Subject: Re: [Tinycc-devel] once again about anonymous struct/union bug
Date: Wed, 19 Jul 2006 03:48:57 -0400
User-agent: Mutt/1.4.2i

On Thu, Jul 13, 2006 at 05:19:57PM -0400, Ben Hinkle wrote:
> On 7/11/06, PerfectDark <address@hidden> wrote:
> >//----------------
> >typedef struct {
> >int any_member;
> >;// just placeholder -
> >//  we can put semicolon in almost each place of code :)
> >} my_struct_t;
> >//----------------
> 
> What section of the ISO_C99 spec says that?

In C99 the above code is a syntax error.  The grammar (Annex A.2.2)
does not allow a "placeholder" semicolon in a struct-declaration-list
by itself.

                                                  -Dave Dodge




reply via email to

[Prev in Thread] Current Thread [Next in Thread]