This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67964] [4.9/5/6 Regression] Multiple attributes wrongly accepted without commas
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Oct 2015 16:54:17 +0000
- Subject: [Bug c/67964] [4.9/5/6 Regression] Multiple attributes wrongly accepted without commas
- Auto-submitted: auto-generated
- References: <bug-67964-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67964
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Oct 20 16:53:45 2015
New Revision: 229091
URL: https://gcc.gnu.org/viewcvs?rev=229091&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr67964.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog