c-parser.c (c_parser_omp_declare_simd): Reject declare simd in pragma_stmt context.
authorJakub Jelinek <jakub@redhat.com>
Thu, 23 Nov 2017 20:17:29 +0000 (21:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 23 Nov 2017 20:17:29 +0000 (21:17 +0100)
commit41521dee8edc8fcfbc8fb2d56773d85f909bf356
treec6a3664d7f25a4d85dfa16c75e38ff5c94829781
parent3b575376fbba16c3be9f607fbf53a6c841b3baae
c-parser.c (c_parser_omp_declare_simd): Reject declare simd in pragma_stmt context.

* c-parser.c (c_parser_omp_declare_simd): Reject declare simd in
pragma_stmt context.

* gcc.dg/gomp/declare-simd-1.c (f9): Remove.
* gcc.dg/gomp/declare-simd-5.c: New test.

From-SVN: r255116
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/declare-simd-1.c
gcc/testsuite/gcc.dg/gomp/declare-simd-5.c [new file with mode: 0644]