https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87649
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 11:07:22 2019 New Revision: 275065 URL: https://gcc.gnu.org/viewcvs?rev=275065&root=gcc&view=rev Log: Backported from mainline 2018-10-19 Jakub Jelinek <ja...@redhat.com> PR middle-end/85488 PR middle-end/87649 * omp-low.c (check_omp_nesting_restrictions): Diagnose ordered without depend closely nested inside of loop with ordered clause with a parameter. * c-c++-common/gomp/doacross-2.c: New test. * c-c++-common/gomp/sink-3.c: Expect another error during error recovery. Added: branches/gcc-7-branch/gcc/testsuite/c-c++-common/gomp/doacross-2.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/omp-low.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/c-c++-common/gomp/sink-3.c