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

            Bug ID: 69654
           Summary: ICE in gfc_trans_structure_assign
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: talebi.hossein at gmail dot com
  Target Milestone: ---

Created attachment 37572
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37572&action=edit
the minimalistic test file

Hi,

Compiling the attached file, using gfrotran versions 4.8.5, 5.3.0 and 6.0
(build 20160131) I get internal compiler error. Running 5.3.0 I get:

$ gfortran-5 -c gfortranbug1.f90 
gfortranbug1.f90:45:0:

 end subroutine  foo_script1
 1
internal compiler error: Segmentation fault
0xa3e2ef crash_signal
        ../../src/gcc/toplev.c:383
0x6b3565 gfc_trans_structure_assign
        ../../src/gcc/fortran/trans-expr.c:7064
0x6b41a4 gfc_trans_subcomponent_assign
        ../../src/gcc/fortran/trans-expr.c:6971
0x6b358b gfc_trans_structure_assign
        ../../src/gcc/fortran/trans-expr.c:7074
0x6b41a4 gfc_trans_subcomponent_assign
        ../../src/gcc/fortran/trans-expr.c:6971
0x6b358b gfc_trans_structure_assign
        ../../src/gcc/fortran/trans-expr.c:7074
0x6b4bd4 gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../src/gcc/fortran/trans-expr.c:7103
0x6b5bb0 gfc_trans_assignment_1
        ../../src/gcc/fortran/trans-expr.c:8990
0x69bf47 gfc_init_default_dt(gfc_symbol*, stmtblock_t*, bool)
        ../../src/gcc/fortran/trans-decl.c:3733
0x6a0b1b gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
        ../../src/gcc/fortran/trans-decl.c:4288
0x6a258b gfc_generate_function_code(gfc_namespace*)
        ../../src/gcc/fortran/trans-decl.c:5917
0x685b41 gfc_generate_module_code(gfc_namespace*)
        ../../src/gcc/fortran/trans.c:2036
0x6403bd translate_all_program_units
        ../../src/gcc/fortran/parse.c:5330
0x6403bd gfc_parse_file()
        ../../src/gcc/fortran/parse.c:5540
0x67f9d5 gfc_be_parse_file
        ../../src/gcc/fortran/f95-lang.c:229
Please submit a full bug report,
with preprocessed source if appropriate.

Cheers
H.

Reply via email to