https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77372
Bug ID: 77372 Summary: ICE in simplify_ieee_selected_real_kind, at fortran/simplify.c:7049 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: --- Affects gfortran 7, 6, 5 (not implemented before 5). $ cat z1.f90 program p use ieee_arithmetic real(kind=ieee_selected_real_kind(10_1)) :: z1 real(kind=ieee_selected_real_kind(10_2)) :: z2 real(kind=ieee_selected_real_kind(10_8)) :: z8 real(kind=ieee_selected_real_kind(10_16)) :: z16 end $ gfortran-7-20160821 z1.f90 f951: internal compiler error: Segmentation fault 0xc1b65f crash_signal ../../gcc/toplev.c:335 0x70767f simplify_ieee_selected_real_kind(gfc_expr*) ../../gcc/fortran/simplify.c:7049 0x68a607 gfc_check_init_expr(gfc_expr*) ../../gcc/fortran/expr.c:2485 0x68acd7 gfc_reduce_init_expr(gfc_expr*) ../../gcc/fortran/expr.c:2670 0x68bc69 gfc_match_init_expr(gfc_expr**) ../../gcc/fortran/expr.c:2709 0x675c18 gfc_match_kind_spec(gfc_typespec*, bool) ../../gcc/fortran/decl.c:2539 0x67af2e gfc_match_decl_type_spec(gfc_typespec*, int) ../../gcc/fortran/decl.c:3330 0x67c3a6 gfc_match_data_decl() ../../gcc/fortran/decl.c:4744 0x6d0269 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6d3a7e match_word ../../gcc/fortran/parse.c:373 0x6d3a7e decode_statement ../../gcc/fortran/parse.c:373 0x6d5784 next_free ../../gcc/fortran/parse.c:1148 0x6d5784 next_statement ../../gcc/fortran/parse.c:1382 0x6d66dc parse_spec ../../gcc/fortran/parse.c:3708 0x6d8bb3 parse_progunit ../../gcc/fortran/parse.c:5493 0x6da154 gfc_parse_file() ../../gcc/fortran/parse.c:6002 0x71c622 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:198