https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78299
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 7 22:50:09 2016 New Revision: 243401 URL: https://gcc.gnu.org/viewcvs?rev=243401&root=gcc&view=rev Log: Backported from mainline 2016-11-16 Jakub Jelinek <ja...@redhat.com> PR fortran/78299 * omp-low.c (expand_omp_for_static_nochunk): Don't assert that loop->header == body_bb if broken_loop. * gfortran.dg/gomp/pr78299.f90: New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/pr78299.f90 Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/omp-low.c branches/gcc-6-branch/gcc/testsuite/ChangeLog