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/67501] Bad error recovery for invalid OpenMP clauses in C FE


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67501

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Sep  9 07:31:43 2015
New Revision: 227582

URL: https://gcc.gnu.org/viewcvs?rev=227582&root=gcc&view=rev
Log:
        PR c/67501
        * c-parser.c (c_parser_oacc_all_clauses,
        c_parser_omp_all_clauses): Remove invalid clause from
        list of clauses even if parser->error is set.

        * c-c++-common/gomp/pr67501.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/c-c++-common/gomp/pr67501.c
Modified:
    branches/gcc-5-branch/gcc/c/ChangeLog
    branches/gcc-5-branch/gcc/c/c-parser.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


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