Re: [C PATCH] Don't accept invalid attribute-list (PR c/67964)

2015-10-20 Thread Joseph Myers
On Tue, 20 Oct 2015, Marek Polacek wrote: > Joseph noticed that we were wrongly accepting multiple attributes without > commas. Thus fixed by breaking out of the loop when parsing the attributes -- > if we don't see a comma after an attribute, then the next tokens must be )); > if > not, then th

[C PATCH] Don't accept invalid attribute-list (PR c/67964)

2015-10-20 Thread Marek Polacek
Joseph noticed that we were wrongly accepting multiple attributes without commas. Thus fixed by breaking out of the loop when parsing the attributes -- if we don't see a comma after an attribute, then the next tokens must be )); if not, then the attribute is invalid. I've also added a few more co