https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83976
Bug ID: 83976 Summary: ICE in gfc_add_component_ref, at fortran/class.c:211 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Gives an ICE with version 7/8, bailed out with 5/6 : $ cat z1.f90 program p type t integer :: a end type class(t), allocatable :: x type(t) :: z = t(3) x = z z = (x) end $ gfortran-8-20180121 -c z1.f90 f951: internal compiler error: Segmentation fault 0xb90cbf crash_signal ../../gcc/toplev.c:325 0x688946 gfc_add_component_ref(gfc_expr*, char const*) ../../gcc/fortran/class.c:211 0x70ace4 resolve_ordinary_assign ../../gcc/fortran/resolve.c:10333 0x712a25 gfc_resolve_code(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:11165 0x71507a resolve_codes ../../gcc/fortran/resolve.c:16465 0x71517e gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:16500 0x6feafa resolve_all_program_units ../../gcc/fortran/parse.c:6042 0x6feafa gfc_parse_file() ../../gcc/fortran/parse.c:6292 0x74520f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204