https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88379
Bug ID: 88379 Summary: ICE in resolve_assoc_var, at fortran/resolve.c:8750 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: --- Extracted from pr88357 : $ cat z2.f90 program p type t end type class(t), allocatable :: x[:] associate (y => x) end associate end $ gfortran-9-20181202 -c z2.f90 -fcoarray=single f951: internal compiler error: Segmentation fault 0xb2ec9f crash_signal ../../gcc/toplev.c:326 0x684b1b resolve_assoc_var ../../gcc/fortran/resolve.c:8750 0x689231 resolve_symbol ../../gcc/fortran/resolve.c:14738 0x6acea2 do_traverse_symtree ../../gcc/fortran/symbol.c:4151 0x683c64 resolve_types ../../gcc/fortran/resolve.c:16623 0x688bcc gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:16737 0x68636b gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:16724 0x68636b resolve_block_construct ../../gcc/fortran/resolve.c:10163 0x68636b gfc_resolve_code(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:11493 0x688b0f resolve_codes ../../gcc/fortran/resolve.c:16704 0x688bde gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:16739 0x676967 resolve_all_program_units ../../gcc/fortran/parse.c:6067 0x676967 gfc_parse_file() ../../gcc/fortran/parse.c:6317 0x6bf5ff gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204