https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78479
Bug ID: 78479 Summary: ICE in gfc_apply_init, at fortran/expr.c:4135 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With valid code down to at least 4.8 : $ cat z1.f90 program p type t character(3) :: c(1) = 'a' // ['b'] end type end $ cat z2.f90 program p type t character(1) :: c(1) = 'a' // ['b'] end type end $ gfortran-7-20161120 z1.f90 f951: internal compiler error: Segmentation fault 0xc4265f crash_signal ../../gcc/toplev.c:333 0x68f1b2 gfc_apply_init(gfc_typespec*, symbol_attribute*, gfc_expr*) ../../gcc/fortran/expr.c:4135 0x6828bf build_struct ../../gcc/fortran/decl.c:1943 0x6828bf variable_decl ../../gcc/fortran/decl.c:2443 0x6828bf gfc_match_data_decl() ../../gcc/fortran/decl.c:4898 0x6daa89 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6de03e match_word ../../gcc/fortran/parse.c:377 0x6de03e decode_statement ../../gcc/fortran/parse.c:377 0x6dfe44 next_free ../../gcc/fortran/parse.c:1180 0x6dfe44 next_statement ../../gcc/fortran/parse.c:1413 0x6e138a parse_derived ../../gcc/fortran/parse.c:3233 0x6e138a parse_spec ../../gcc/fortran/parse.c:3773 0x6e3bc3 parse_progunit ../../gcc/fortran/parse.c:5615 0x6e51b4 gfc_parse_file() ../../gcc/fortran/parse.c:6124 0x729052 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:202