https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87994
Bug ID: 87994 Summary: ICE in match_data_constant, at fortran/decl.c:399 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Should be valid code, thematically related to pr87993. $ cat z1.f90 program p real :: a, b data b /a%kind/ end $ gfortran-9-20181111 -c z1.f90 f951: internal compiler error: Segmentation fault 0xb297bf crash_signal ../../gcc/toplev.c:325 0x604ded match_data_constant ../../gcc/fortran/decl.c:399 0x604f83 top_val_list ../../gcc/fortran/decl.c:472 0x60519f gfc_match_data() ../../gcc/fortran/decl.c:616 0x66a7f1 match_word ../../gcc/fortran/parse.c:65 0x66df36 decode_statement ../../gcc/fortran/parse.c:468 0x66eb5a next_free ../../gcc/fortran/parse.c:1234 0x66eb5a next_statement ../../gcc/fortran/parse.c:1466 0x67016b parse_spec ../../gcc/fortran/parse.c:3858 0x672c37 parse_progunit ../../gcc/fortran/parse.c:5671 0x6742b9 gfc_parse_file() ../../gcc/fortran/parse.c:6211 0x6bc89f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204