https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87751
Bug ID: 87751 Summary: ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10255 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Down to version 5 at least, with an invalid function reference and together with option -fcheck=all or -fcheck=mem : $ cat z1.f90 program p interface function f() result(z) integer, allocatable :: z(:) end end interface procedure(f), pointer :: g => null() g = 1 end $ gfortran-9-20181021 -c z1.f90 $ $ gfortran-9-20181021 -c z1.f90 -fcheck=all z1.f90:8:0: 8 | g = 1 | internal compiler error: in gfc_trans_assignment_1, at fortran/trans-expr.c:10255 0x6fc273 gfc_trans_assignment_1 ../../gcc/fortran/trans-expr.c:10254 0x6bd90f trans_code ../../gcc/fortran/trans.c:1822 0x6e51c4 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6505 0x673426 translate_all_program_units ../../gcc/fortran/parse.c:6125 0x673426 gfc_parse_file() ../../gcc/fortran/parse.c:6328 0x6ba3ff gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204