https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71014
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Sep 1 11:41:34 2016 New Revision: 239928 URL: https://gcc.gnu.org/viewcvs?rev=239928&root=gcc&view=rev Log: Backported from mainline 2016-08-19 Jakub Jelinek <ja...@redhat.com> PR fortran/71014 * resolve.c (gfc_resolve): For ns->construct_entities don't save, clear and restore omp state around the resolving. * testsuite/libgomp.fortran/pr71014.f90: New test. Added: branches/gcc-6-branch/libgomp/testsuite/libgomp.fortran/pr71014.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/resolve.c branches/gcc-6-branch/libgomp/ChangeLog