https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79512
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:23:09 2017 New Revision: 247667 URL: https://gcc.gnu.org/viewcvs?rev=247667&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-6-branch/gcc/testsuite/c-c++-common/gomp/pr79512.c Modified: branches/gcc-6-branch/gcc/c/ChangeLog branches/gcc-6-branch/gcc/c/c-parser.c branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/parser.c branches/gcc-6-branch/gcc/testsuite/ChangeLog