https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82587
Bug ID: 82587 Summary: ICE in get_pdt_constructor, at fortran/resolve.c:1185 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: --- Another piece of invalid code : $ cat z1.f90 program p type t(a) integer(kind=t()) :: x end type end $ gfortran-8-20171015 -c z1.f90 f951: internal compiler error: in get_pdt_constructor, at fortran/resolve.c:1185 0x6ed6e5 get_pdt_constructor ../../gcc/fortran/resolve.c:1185 0x7037be resolve_structure_cons ../../gcc/fortran/resolve.c:1247 0x6f31ba resolve_generic_f ../../gcc/fortran/resolve.c:2697 0x6f31ba resolve_function ../../gcc/fortran/resolve.c:3120 0x6f350a gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:6608 0x6916ef gfc_reduce_init_expr(gfc_expr*) ../../gcc/fortran/expr.c:2696 0x6940d1 gfc_match_init_expr(gfc_expr**) ../../gcc/fortran/expr.c:2744 0x679605 gfc_match_kind_spec(gfc_typespec*, bool) ../../gcc/fortran/decl.c:2710 0x67faa2 gfc_match_decl_type_spec(gfc_typespec*, int) ../../gcc/fortran/decl.c:4053 0x68115c gfc_match_data_decl() ../../gcc/fortran/decl.c:5605 0x6dbac9 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6df17e match_word ../../gcc/fortran/parse.c:376 0x6df17e decode_statement ../../gcc/fortran/parse.c:376 0x6e0fb4 next_free ../../gcc/fortran/parse.c:1225 0x6e0fb4 next_statement ../../gcc/fortran/parse.c:1457 0x6e252d parse_derived ../../gcc/fortran/parse.c:3252 0x6e252d parse_spec ../../gcc/fortran/parse.c:3792 0x6e4d93 parse_progunit ../../gcc/fortran/parse.c:5634 0x6e6354 gfc_parse_file() ../../gcc/fortran/parse.c:6174 0x72a6bf gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204