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

--- Comment #30 from Vittorio Zecca <zeccav at gmail dot com> ---
On the following source code I still have the ICE:

      type t
       integer g
      end type
      type(t) :: u=t(1)
      data u%g /2/ ! should emit diagnostic here
      end

gfortran -S gfbug63.f
gfbug63.f:6:72:

    6 |       type t
      |                                                                       
1
internal compiler error: Segmentation fault
0xe7a01f crash_signal
        ../../gcc-150221/gcc/toplev.c:327
0x94a42d gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc-150221/gcc/fortran/trans-expr.c:8746
0x94a01f gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc-150221/gcc/fortran/trans-expr.c:7895
0x92ed34 gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc-150221/gcc/fortran/trans-decl.c:1917
0x931c03 generate_local_decl
        ../../gcc-150221/gcc/fortran/trans-decl.c:5950
0x8ead22 do_traverse_symtree
        ../../gcc-150221/gcc/fortran/symbol.c:4170
0x932d93 generate_local_vars
        ../../gcc-150221/gcc/fortran/trans-decl.c:6156
0x932d93 gfc_generate_function_code(gfc_namespace*)
        ../../gcc-150221/gcc/fortran/trans-decl.c:6815
0x8afaee translate_all_program_units
        ../../gcc-150221/gcc/fortran/parse.c:6351
0x8afaee gfc_parse_file()
        ../../gcc-150221/gcc/fortran/parse.c:6620
0x90112f gfc_be_parse_file
        ../../gcc-150221/gcc/fortran/f95-lang.c:212
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to