https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83864
Bug ID: 83864 Summary: ICE in gfc_apply_init, at fortran/expr.c:4271 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: --- Occurs down to at least gfortran 4.8 : $ cat z1.f90 program p type t character :: c(3) = transfer('abc','z',3) end type end $ gfortran-8-20180114 -c z1.f90 f951: internal compiler error: Segmentation fault 0xb8fd7f crash_signal ../../gcc/toplev.c:325 0x6a6b63 gfc_apply_init(gfc_typespec*, symbol_attribute*, gfc_expr*) ../../gcc/fortran/expr.c:4271 0x699296 build_struct ../../gcc/fortran/decl.c:1995 0x699296 variable_decl ../../gcc/fortran/decl.c:2595 0x699296 gfc_match_data_decl() ../../gcc/fortran/decl.c:5698 0x6f3ea9 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6f759e match_word ../../gcc/fortran/parse.c:376 0x6f759e decode_statement ../../gcc/fortran/parse.c:376 0x6f93d4 next_free ../../gcc/fortran/parse.c:1226 0x6f93d4 next_statement ../../gcc/fortran/parse.c:1458 0x6fa94d parse_derived ../../gcc/fortran/parse.c:3256 0x6fa94d parse_spec ../../gcc/fortran/parse.c:3797 0x6fd173 parse_progunit ../../gcc/fortran/parse.c:5649 0x6fe754 gfc_parse_file() ../../gcc/fortran/parse.c:6189 0x744e5f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204