https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68715
Bug ID: 68715 Summary: [6 Regression] ice: in harmful_stmt_in_region, at graphite-scop-detection.c:1043 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: Joost.VandeVondele at mat dot ethz.ch Target Milestone: --- not a dup of PR68693: > cat bug.f90 SUBROUTINE se_core_core_interaction(calculate_forces) INTEGER, PARAMETER :: dp=8 LOGICAL, INTENT(in) :: calculate_forces REAL(KIND=dp), DIMENSION(3) :: force_ab, rij LOGICAL :: lfoo,kfoo,mfoo,nfoo,ffoo INTEGER, PARAMETER :: mi2=42 CALL dummy(lfoo,kfoo,mfoo,nfoo,method_id,core_core) IF(lfoo) THEN DO WHILE (ffoo()) IF (lfoo) CYCLE IF (kfoo) CYCLE dr1 = DOT_PRODUCT(rij,rij) IF ( dr1 > rij_threshold ) THEN SELECT CASE (method_id) CASE (mi2) IF(calculate_forces) THEN CALL dummy2(force_ab) IF (nfoo) THEN force_ab = force_ab + core_core*dr3inv END IF END IF END SELECT END IF enuclear = enuclear + enucij END DO CALL dummy3(enuclear) END IF END SUBROUTINE se_core_core_interaction > gfortran -c -floop-nest-optimize -O1 bug.f90 bug.f90:1:0: SUBROUTINE se_core_core_interaction(calculate_forces) internal compiler error: in harmful_stmt_in_region, at graphite-scop-detection.c:1043 0x128e27e harmful_stmt_in_region ../../gcc/gcc/graphite-scop-detection.c:1043 0x128e27e merge_sese ../../gcc/gcc/graphite-scop-detection.c:848 0x128e5cc build_scop_breadth ../../gcc/gcc/graphite-scop-detection.c:901 0x128e5cc build_scop_depth ../../gcc/gcc/graphite-scop-detection.c:879 0x128e2e5 build_scop_depth ../../gcc/gcc/graphite-scop-detection.c:865 0x128e2e5 build_scop_depth ../../gcc/gcc/graphite-scop-detection.c:865 0x128fb62 build_scops(vec<scop*, va_heap, vl_ptr>*) ../../gcc/gcc/graphite-scop-detection.c:1913 0x127df71 graphite_transform_loops() ../../gcc/gcc/graphite.c:314 0x127e5b0 graphite_transforms ../../gcc/gcc/graphite.c:363 0x127e5b0 execute ../../gcc/gcc/graphite.c:440 Please submit a full bug report, > gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/data/vjoost/gnu/gcc_trunk/install/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/data/vjoost/gnu/gcc_trunk/install --enable-languages=c,c++,fortran --disable-multilib --enable-plugins --enable-lto --disable-bootstrap Thread model: posix gcc version 6.0.0 20151205 (experimental) [trunk revision 231314] (GCC)