https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154
Bug ID: 69154 Summary: [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- Created attachment 37234 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37234&action=edit test case seen with trunk r232077 on several architectures, building the abinit package. worked around by building with -O0: $ gfortran -ffree-form -g -O1 -c -o m_numeric_tools.o m_numeric_tools.f90 m_numeric_tools.F90:2085:0: internal compiler error: in gfc_trans_where_2, at fortran/trans-stmt.c:5005 0x1030c173 gfc_trans_where_2 ../../src/gcc/fortran/trans-stmt.c:5005 0x10313653 gfc_trans_where(gfc_code*) ../../src/gcc/fortran/trans-stmt.c:5237 0x102952b7 trans_code ../../src/gcc/fortran/trans.c:1832 0x102c19ff gfc_generate_function_code(gfc_namespace*) ../../src/gcc/fortran/trans-decl.c:6083 0x10299ad3 gfc_generate_module_code(gfc_namespace*) ../../src/gcc/fortran/trans.c:2054 0x102384f7 translate_all_program_units ../../src/gcc/fortran/parse.c:5599 0x102384f7 gfc_parse_file() ../../src/gcc/fortran/parse.c:5818 0x1029122f gfc_be_parse_file ../../src/gcc/fortran/f95-lang.c:201 Please submit a full bug report, with preprocessed source if appropriate.