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

G. Steinmetz <gs...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gs...@t-online.de

--- Comment #4 from G. Steinmetz <gs...@t-online.de> ---

Update :


$ cat z1.f90
program p
   type t
      integer :: i
      character(3) :: c
   end type
   type t2
      type(t) :: a
   end type
   type(t2) :: x
   data x%a%i / 1 /
   data x%a%c / 'abc' /
   print *, x
end


$ gfortran-9-20181021 -c z1.f90
z1.f90:1:0:

    1 | program p
      |
internal compiler error: in gfc_conv_string_init, at fortran/trans-const.c:148
0x6d888b gfc_conv_string_init(tree_node*, gfc_expr*)
        ../../gcc/fortran/trans-const.c:148
0x6fca5f gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.c:7034
0x6ec173 gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc/fortran/trans-expr.c:7894
0x6fca91 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.c:7027
0x6ec173 gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc/fortran/trans-expr.c:7894
0x6fca91 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.c:7027
0x6e1647 gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc/fortran/trans-decl.c:1824
0x6e3ec7 generate_local_decl
        ../../gcc/fortran/trans-decl.c:5596
0x6a80f2 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4151
0x6e4fe4 generate_local_vars
        ../../gcc/fortran/trans-decl.c:5796
0x6e4fe4 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6440
0x673426 translate_all_program_units
        ../../gcc/fortran/parse.c:6125
0x673426 gfc_parse_file()
        ../../gcc/fortran/parse.c:6328
0x6ba3ff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to