re PR c/79428 (ICE in c_parser_consume_token, at c/c-parser.c:770)
authorMarek Polacek <polacek@redhat.com>
Thu, 9 Feb 2017 17:07:26 +0000 (17:07 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 9 Feb 2017 17:07:26 +0000 (17:07 +0000)
commit192b048b5c92b3af78af0f58bf4474e5db770f23
tree23d525315e67d786e296515f2dfec0bfc9d32732
parente9a9033b5969aac9b3e0269c78a9feeeb614c3bd
re PR c/79428 (ICE in c_parser_consume_token, at c/c-parser.c:770)

PR c/79428
* c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
instead of c_parser_skip_until_found.

* c-c++-common/cilk-plus/CK/pr79428-4.c: New test.
* c-c++-common/cilk-plus/CK/pr79428-7.c: New test.
* c-c++-common/goacc/pr79428-1.c: New test.
* c-c++-common/gomp/pr79428-2.c: New test.
* c-c++-common/gomp/pr79428-5.c: New test.
* c-c++-common/gomp/pr79428-6.c: New test.
* c-c++-common/pr79428-3.c: New test.

From-SVN: r245309
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-4.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-7.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/goacc/pr79428-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/pr79428-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/pr79428-5.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/pr79428-6.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr79428-3.c [new file with mode: 0644]