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

--- Comment #3 from G. Steinmetz <gs...@t-online.de> ---
Backtrace for example z2 from comment 1 :
(with new snapshot, configured with --enable-checking=yes)


$ gfortran-8-20171022 -c z2.f90
z2.f90:1:0:

 program p

internal compiler error: tree check: expected array_type, have record_type in
gfc_conv_array_initializer, at fortran/trans-array.c:5881
0x60eaa1 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.c:9098
0x76c493 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3094
0x76c493 gfc_conv_array_initializer(tree_node*, gfc_expr*)
        ../../gcc/fortran/trans-array.c:5881
0x7a4dd0 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.c:6805
0x7a5621 gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc/fortran/trans-expr.c:7708
0x7a4fb1 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.c:6840
0x78945c gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc/fortran/trans-decl.c:1819
0x78d1d7 generate_local_decl
        ../../gcc/fortran/trans-decl.c:5493
0x744f4b do_traverse_symtree
        ../../gcc/fortran/symbol.c:4157
0x78dfa2 generate_local_vars
        ../../gcc/fortran/trans-decl.c:5693
0x78dfa2 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6357
0x712e40 translate_all_program_units
        ../../gcc/fortran/parse.c:6088
0x712e40 gfc_parse_file()
        ../../gcc/fortran/parse.c:6291
0x75819f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to