https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79429

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:06:29 2017
New Revision: 245472

URL: https://gcc.gnu.org/viewcvs?rev=245472&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-09  Jakub Jelinek  <ja...@redhat.com>

        PR c++/79429
        * parser.c (cp_parser_omp_ordered): Don't check for non-pragma_stmt
        non-pragma_compound context here.
        (cp_parser_omp_target): Likewise.
        (cp_parser_pragma): Don't call push_omp_privatization_clauses and
        parsing for ordered and target omp pragmas in non-pragma_stmt
        non-pragma_compound contexts.

        * c-c++-common/gomp/pr79429.c: New test.
        * g++.dg/gomp/pr79429.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/c-c++-common/gomp/pr79429.c
    branches/gcc-6-branch/gcc/testsuite/g++.dg/gomp/pr79429.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/parser.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to