https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88357
Bug ID: 88357 Summary: ICE in parse_associate, at fortran/parse.c:4568 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: --- With invalid code, down to at least gcc-5 : $ cat z1.f90 program p type t end type class(t) :: x[*] associate (y => x) end associate end $ gfortran-9-20181202 -c z1.f90 -fcoarray=single f951: internal compiler error: Segmentation fault 0xc8f33f crash_signal ../../gcc/toplev.c:326 0x69b4b9 parse_associate ../../gcc/fortran/parse.c:4568 0x69b4b9 parse_executable ../../gcc/fortran/parse.c:5319 0x69bc4f parse_progunit ../../gcc/fortran/parse.c:5700 0x69d229 gfc_parse_file() ../../gcc/fortran/parse.c:6214 0x6e6a9f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204 --- $ 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