https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78259
Bug ID: 78259 Summary: ICE in gfc_trans_subcomponent_assign, at fortran/trans-expr.c:7330 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: --- Test version 7 (--enable-checking=yes) with option -fdec : $ cat z1.f90 subroutine sub structure /s/ union map integer n(2) end map map integer(8) m /2/ end map end union end structure record /s/ r r.n(1) = 1 end $ gfortran-7-20161106 -fdec -c z1.f90 z1.f90:14:0: end internal compiler error: Segmentation fault 0xc3a64f crash_signal ../../gcc/toplev.c:338 0x76e8d1 gfc_trans_subcomponent_assign ../../gcc/fortran/trans-expr.c:7330 0x76db12 gfc_trans_structure_assign(tree_node*, gfc_expr*, bool) ../../gcc/fortran/trans-expr.c:7482 0x76fd52 gfc_conv_structure(gfc_se*, gfc_expr*, int) ../../gcc/fortran/trans-expr.c:7548 0x76852c gfc_conv_expr(gfc_se*, gfc_expr*) ../../gcc/fortran/trans-expr.c:7715 0x771b99 gfc_trans_assignment_1 ../../gcc/fortran/trans-expr.c:9730 0x74cbb0 gfc_init_default_dt(gfc_symbol*, stmtblock_t*, bool) ../../gcc/fortran/trans-decl.c:3924 0x756a9d gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*) ../../gcc/fortran/trans-decl.c:4530 0x758e53 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6363 0x6e1d90 translate_all_program_units ../../gcc/fortran/parse.c:5944 0x6e1d90 gfc_parse_file() ../../gcc/fortran/parse.c:6144 0x725822 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:198