This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Better error reporting for missing semicolons after a struct definition


On 11/05/2010 07:04 PM, Joseph S. Myers wrote:
struct s { struct { int a; } };
int *f(struct s *p) { return &p->a; }

The *correct*  behavior I think is neither - it should be accepted
with the anonymous structure processed (so the check above should
allow for CPP_CLOSE_BRACE as well as CPP_SEMICOLON), like 4.0 and
earlier did with the old parser.

I agree, I'll take a look at this testcase.


Thanks for the review!

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]