This is the mail archive of the gcc-bugs@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]

[Bug c/67964] [4.9/5/6 Regression] Multiple attributes wrongly accepted without commas


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


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