https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82886

            Bug ID: 82886
           Summary: ICE with -finit-derived in gfc_conv_expr, at
                    fortran/trans-expr.c:7807
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

With file ./gcc/testsuite/gfortran.dg/c_ptr_tests_9.f03 :


$ gfortran-8-20171105 -c c_ptr_tests_9.f03 -finit-derived
c_ptr_tests_9.f03:22:0:

   end subroutine sub0

internal compiler error: Segmentation fault
0xb60fdf crash_signal
        ../../gcc/toplev.c:324
0x763411 gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:7807
0x767c0e gfc_trans_structure_assign(tree_node*, gfc_expr*, bool, bool)
        ../../gcc/fortran/trans-expr.c:7535
0x768a2e gfc_trans_subcomponent_assign
        ../../gcc/fortran/trans-expr.c:7459
0x767a70 gfc_trans_structure_assign(tree_node*, gfc_expr*, bool, bool)
        ../../gcc/fortran/trans-expr.c:7624
0x76996f gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc/fortran/trans-expr.c:7691
0x76b089 gfc_trans_assignment_1
        ../../gcc/fortran/trans-expr.c:10002
0x74d8e0 gfc_init_default_dt(gfc_symbol*, stmtblock_t*, bool)
        ../../gcc/fortran/trans-decl.c:4010
0x754caa gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
        ../../gcc/fortran/trans-decl.c:4688
0x756d53 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6526
0x733ac1 gfc_generate_module_code(gfc_namespace*)
        ../../gcc/fortran/trans.c:2206
0x6e8abd translate_all_program_units
        ../../gcc/fortran/parse.c:6078
0x6e8abd gfc_parse_file()
        ../../gcc/fortran/parse.c:6294
0x72d3bf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to