https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92756
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 20 17:35:18 2019 New Revision: 279666 URL: https://gcc.gnu.org/viewcvs?rev=279666&root=gcc&view=rev Log: PR fortran/92756 * omp-low.c (check_omp_nesting_restrictions): If lang_GNU_Fortran, diagnose teams not closely nested inside of target. Backported from mainline 2019-12-04 Jakub Jelinek <ja...@redhat.com> PR fortran/92756 * gfortran.dg/gomp/teams1.f90: New test. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/gomp/teams1.f90 Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/omp-low.c branches/gcc-9-branch/gcc/testsuite/ChangeLog