https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87649
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Nov 5 14:07:47 2018 New Revision: 265801 URL: https://gcc.gnu.org/viewcvs?rev=265801&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-8-branch/gcc/testsuite/c-c++-common/gomp/doacross-2.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/omp-low.c branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/testsuite/c-c++-common/gomp/sink-3.c