re PR c/67501 (Bad error recovery for invalid OpenMP clauses in C FE)
authorJakub Jelinek <jakub@redhat.com>
Wed, 9 Sep 2015 07:24:48 +0000 (09:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 9 Sep 2015 07:24:48 +0000 (09:24 +0200)
commit0bb99c1162085f10cb1706f61774e72b654e5279
treefc9692fef1a6b2e989f967181fb2789a4d115a32
parentfce5e5e35fa397389079203760dd1880fa3edc41
re PR c/67501 (Bad error recovery for invalid OpenMP clauses in C FE)

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.

From-SVN: r227578
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr67501.c [new file with mode: 0644]