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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

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

On the other hand, test versions are affected down to r8 :
(gcc configured with --enable-checking=yes)


$ gfortran-12-20220424 -c z1.f90
z1.f90:10:3:

   10 | end
      |   1
internal compiler error: tree check: expected array_type, have record_type in
gfc_conv_array_initializer, at fortran/trans-array.cc:6317
0x6addd6 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.cc:8798
0x7fc3f2 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3457
0x7fc3f2 gfc_conv_array_initializer(tree_node*, gfc_expr*)
        ../../gcc/fortran/trans-array.cc:6317
0x842b00 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.cc:8393
0x842f20 gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc/fortran/trans-expr.cc:9308
0x842c59 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.cc:8428
0x814170 gfc_emit_parameter_debug_info
        ../../gcc/fortran/trans-decl.cc:5513
0x7d0742 do_traverse_symtree
        ../../gcc/fortran/symbol.cc:4174
0x826bc3 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7818
0x7984ce translate_all_program_units
        ../../gcc/fortran/parse.cc:6669
0x7984ce gfc_parse_file()
        ../../gcc/fortran/parse.cc:6956
0x7e653f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:216

Reply via email to