https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79512
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:58:55 2017 New Revision: 248643 URL: https://gcc.gnu.org/viewcvs?rev=248643&root=gcc&view=rev Log: Backported from mainline 2017-02-16 Jakub Jelinek <ja...@redhat.com> PR c++/79512 * c-parser.c (c_parser_omp_target): For -fopenmp-simd ignore #pragma omp target even when not followed by identifier. * parser.c (cp_parser_omp_target): For -fopenmp-simd ignore #pragma omp target even when not followed by identifier. * c-c++-common/gomp/pr79512.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/c-c++-common/gomp/pr79512.c Modified: branches/gcc-5-branch/gcc/c/ChangeLog branches/gcc-5-branch/gcc/c/c-parser.c branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/parser.c branches/gcc-5-branch/gcc/testsuite/ChangeLog