[Bug fortran/92277] New: ICE with assumed rank
jrfsousa at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 30 09:07:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92277
Bug ID: 92277
Summary: ICE with assumed rank
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jrfsousa at gmail dot com
Target Milestone: ---
Created attachment 47129
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47129&action=edit
Code triggering ICE
Hi all!
Internal compiler error with assumed rank arguments.
GNU Fortran (GCC) 10.0.0 20191028 (experimental)
Not present in GNU Fortran (GCC) 9.1.0
Command line:
gfortran -c ./arr.f90
Compiler output:
./arr.f90:19:0:
19 | call arr_set_c(this)
|
internal compiler error: tree check: expected tree that contains ‘decl common’
structure, have ‘indirect_ref’ in gfc_conv_gfc_desc_to_cfi_desc, at
fortran/trans-expr.c:5261
0x6f65d5 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
../../gcc-trunk/gcc/tree.c:10099
0x5ff3be contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
../../gcc-trunk/gcc/tree.h:3381
0x5ff3be gfc_conv_gfc_desc_to_cfi_desc
../../gcc-trunk/gcc/fortran/trans-expr.c:5261
0x8b04d2 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
../../gcc-trunk/gcc/fortran/trans-expr.c:6153
0x8ead27 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
../../gcc-trunk/gcc/fortran/trans-stmt.c:406
0x86e1db trans_code
../../gcc-trunk/gcc/fortran/trans.c:1920
0x89bbce gfc_generate_function_code(gfc_namespace*)
../../gcc-trunk/gcc/fortran/trans-decl.c:6791
0x8721f1 gfc_generate_module_code(gfc_namespace*)
../../gcc-trunk/gcc/fortran/trans.c:2250
0x81b5e5 translate_all_program_units
../../gcc-trunk/gcc/fortran/parse.c:6263
0x81b5e5 gfc_parse_file()
../../gcc-trunk/gcc/fortran/parse.c:6515
0x86b11f gfc_be_parse_file
../../gcc-trunk/gcc/fortran/f95-lang.c:208
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.
Thank you very much.
Best regards,
José Rui
More information about the Gcc-bugs
mailing list