re PR c/67964 (Multiple attributes wrongly accepted without commas)
authorMarek Polacek <polacek@redhat.com>
Tue, 20 Oct 2015 16:53:45 +0000 (16:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 20 Oct 2015 16:53:45 +0000 (16:53 +0000)
commit2c7020eb7e9642df8a9bc39b5b28077f1b24cadb
treec8c49700d2ef453f3aba6ccf592745725642b511
parent78edb32f826fbfafed3a6e8eda5f4043a5887a99
re PR c/67964 (Multiple attributes wrongly accepted without commas)

PR c/67964
* c-parser.c (c_parser_attributes): Break out of the loop if the
token after an attribute isn't a comma.

* gcc.dg/pr67964.c: New test.

From-SVN: r229091
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67964.c [new file with mode: 0644]