https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70748
Bug ID: 70748 Summary: GCC6 Regression: ICE with debug in gfc_trans_block_construct Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: antony at cosmologist dot info Target Milestone: --- Run "make Debug" on code at https://github.com/cmbant/forutils/ gfortran -cpp -ffree-line-length-none -fmax-errors=4 -MMD -g -O0 -o IniObjects.o -c ../IniObjects.f90 ../IniObjects.f90:348:0: S = S(i+2:) internal compiler error: in gfc_trans_block_construct, at fortran/trans-stmt.c:1788 0x6e30e1 gfc_trans_block_construct(gfc_code*) ../../gcc/fortran/trans-stmt.c:1788 0x67f637 trans_code ../../gcc/fortran/trans.c:1785 0x6dac43 gfc_trans_if_1 ../../gcc/fortran/trans-stmt.c:1299 0x6dac54 gfc_trans_if_1 ../../gcc/fortran/trans-stmt.c:1303 0x6e188a gfc_trans_if(gfc_code*) ../../gcc/fortran/trans-stmt.c:1330 0x67f6a7 trans_code ../../gcc/fortran/trans.c:1777 0x6dac43 gfc_trans_if_1 ../../gcc/fortran/trans-stmt.c:1299 0x6e188a gfc_trans_if(gfc_code*) ../../gcc/fortran/trans-stmt.c:1330 0x67f6a7 trans_code ../../gcc/fortran/trans.c:1777 0x6e3e2d gfc_trans_do_while(gfc_code*) ../../gcc/fortran/trans-stmt.c:2294 0x67f657 trans_code ../../gcc/fortran/trans.c:1797 0x6dac43 gfc_trans_if_1 ../../gcc/fortran/trans-stmt.c:1299 0x6e188a gfc_trans_if(gfc_code*) ../../gcc/fortran/trans-stmt.c:1330 0x67f6a7 trans_code ../../gcc/fortran/trans.c:1777 0x6a302c gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6154 0x682b21 gfc_generate_module_code(gfc_namespace*) ../../gcc/fortran/trans.c:2058 0x63b54d translate_all_program_units ../../gcc/fortran/parse.c:5600 0x63b54d gfc_parse_file() ../../gcc/fortran/parse.c:5819 0x67c985 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:201 Please submit a full bug report, with preprocessed source if appropriate. Appeared sometime in gcc in the last couple of months, also in v7 master.