https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77352
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Aug 31 18:42:55 2016 New Revision: 239904 URL: https://gcc.gnu.org/viewcvs?rev=239904&root=gcc&view=rev Log: PR fortran/77352 * trans-openmp.c (gfc_trans_omp_parallel_workshare): Always add a BIND_EXPR with BLOCK around what gfc_trans_omp_workshare returns. * gfortran.dg/gomp/pr77352.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/gomp/pr77352.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-openmp.c trunk/gcc/testsuite/ChangeLog