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 the attribute is invalid.  I've also added a few more comments.
> 
> (I think it would be nicer to model the code after C++ and introduce
> c_parser_attributes_list, but the following is enough to fix the bug.)
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to