https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92863
Bug ID: 92863 Summary: ICE in gfc_typename Product: gcc Version: unknown Status: UNCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gfortran-10.0.0-alpha20191208 snapshot (r279100) ICEs when compiling the following testcase: type(l1) function mp() call sub(mp) end function mp function bi(ry) call sub(ry) end function bi % powerpc-e300c3-linux-gnu-gfortran-10.0.0-alpha20191208 -c pws8056f.f90 pws8056f.f90:1:0: 1 | type(l1) function mp() | Error: The type for function 'mp' at (1) is not accessible f951: internal compiler error: Segmentation fault 0xe74916 crash_signal /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/toplev.c:328 0x860c1b sprintf /usr/include/bits/stdio2.h:36 0x860c1b gfc_typename(gfc_typespec*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/misc.c:167 0x834466 compare_parameter /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/interface.c:2399 0x834466 gfc_compare_actual_formal(gfc_actual_arglist**, gfc_formal_arglist*, int, int, bool, locus*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/interface.c:3149 0x9749ef check_externals_procedure /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/frontend-passes.c:5410 0x97a9a3 gfc_code_walker(gfc_code**, int (*)(gfc_code**, int*, void*), int (*)(gfc_expr**, int*, void*), void*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/frontend-passes.c:5039 0x97c24f gfc_check_externals(gfc_namespace*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/frontend-passes.c:5496 0x885704 gfc_parse_file() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/parse.c:6494 0x8d3fbe gfc_be_parse_file /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20191208/work/gcc-10-20191208/gcc/fortran/f95-lang.c:210