https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95586
Bug ID: 95586 Summary: ICE in gfc_validate_kind, at fortran/trans-types.c:773 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Affects versions down to at least r5 : $ cat z1.f90 program p implicit type(t) (1) type t end type end $ cat z2.f90 program p integer n1 parameter (n1 = 1) implicit type(t) (n1) type t end type end $ gfortran-11-20200607 -c z1.f90 f951: internal compiler error: gfc_validate_kind(): Got bad type 0x654af9 gfc_report_diagnostic ../../gcc/fortran/error.c:782 0x65621a gfc_internal_error(char const*, ...) ../../gcc/fortran/error.c:1402 0x77d9a7 gfc_validate_kind(bt, int, bool) ../../gcc/fortran/trans-types.c:773 0x63f621 gfc_match_kind_spec(gfc_typespec*, bool) ../../gcc/fortran/decl.c:3191 0x646967 gfc_match_implicit() ../../gcc/fortran/decl.c:4832 0x6a8191 match_word ../../gcc/fortran/parse.c:65 0x6ac309 decode_statement ../../gcc/fortran/parse.c:508 0x6acf5a next_free ../../gcc/fortran/parse.c:1279 0x6acf5a next_statement ../../gcc/fortran/parse.c:1511 0x6af304 parse_spec ../../gcc/fortran/parse.c:3738 0x6b137c parse_progunit ../../gcc/fortran/parse.c:5851 0x6b2a59 gfc_parse_file() ../../gcc/fortran/parse.c:6392 0x6feb3f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:212