https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70855
Bug ID: 70855 Summary: [6 Regression] ICE with -fopenmp in gfc_trans_omp_workshare(): Bad statement code Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With GNU Fortran (SUSE Linux) 6.1.0 20160427 and optimization level -Og, -Os, -O1 or higher : $ cat z1.f90 program p integer, parameter :: m = 4 integer, parameter :: n = 2 real :: a(m,n) real :: x(n) real :: y(m) a = 1.0 x = 1.0 !$omp parallel !$omp workshare y(1:m) = matmul ( a(1:m,1:n), x(1:n) ) !$omp end workshare !$omp end parallel end $ gfortran-6 -O2 -fopenmp -c z1.f90 f951: internal compiler error: gfc_trans_omp_workshare(): Bad statement code