https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83092
Bug ID: 83092 Summary: ICE in gfc_apply_init, at fortran/expr.c:4228 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: --- Follow-up of pr78686 (where ICE is gone since about a month ago) : $ cat z1.f90 program p type t integer :: n = 0 end type type t2 character :: c = t() end type end $ gfortran-8-20171119 -c z1.f90 f951: internal compiler error: in gfc_apply_init, at fortran/expr.c:4228 0x693df2 gfc_apply_init(gfc_typespec*, symbol_attribute*, gfc_expr*) ../../gcc/fortran/expr.c:4228 0x686876 build_struct ../../gcc/fortran/decl.c:1992 0x686876 variable_decl ../../gcc/fortran/decl.c:2592 0x686876 gfc_match_data_decl() ../../gcc/fortran/decl.c:5683 0x6e0c69 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6e431e match_word ../../gcc/fortran/parse.c:376 0x6e431e decode_statement ../../gcc/fortran/parse.c:376 0x6e6154 next_free ../../gcc/fortran/parse.c:1225 0x6e6154 next_statement ../../gcc/fortran/parse.c:1457 0x6e76cd parse_derived ../../gcc/fortran/parse.c:3255 0x6e76cd parse_spec ../../gcc/fortran/parse.c:3795 0x6e9f33 parse_progunit ../../gcc/fortran/parse.c:5637 0x6eb4f4 gfc_parse_file() ../../gcc/fortran/parse.c:6177 0x72ff5f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204