https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78240
Bug ID: 78240 Summary: ICE in match_clist_expr, at fortran/decl.c:728 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: --- Invalid code with an uninitialized parameter n. Affects version 6 and 7, needs option -fdec* : $ cat z1.f90 program p structure /s/ integer x(n) /1/ end structure end $ gfortran-7-20161106 -fdec z1.f90 f951: internal compiler error: in match_clist_expr, at fortran/decl.c:728 0x682abe match_clist_expr ../../gcc/fortran/decl.c:728 0x682abe variable_decl ../../gcc/fortran/decl.c:2350 0x682abe gfc_match_data_decl() ../../gcc/fortran/decl.c:4891 0x6d7b89 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6daa9e match_word ../../gcc/fortran/parse.c:377 0x6daa9e decode_statement ../../gcc/fortran/parse.c:377 0x6dc8a4 next_free ../../gcc/fortran/parse.c:1149 0x6dc8a4 next_statement ../../gcc/fortran/parse.c:1382 0x6dd6ca parse_struct_map ../../gcc/fortran/parse.c:3071 0x6de3c1 parse_spec ../../gcc/fortran/parse.c:3691 0x6e05c3 parse_progunit ../../gcc/fortran/parse.c:5521 0x6e1b64 gfc_parse_file() ../../gcc/fortran/parse.c:6030 0x725822 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:198