https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91894
Bug ID: 91894 Summary: [10 Regression] ICE in tree check: expected tree that contains ‘decl common’ structure, have ‘integer_cst’ in tree_could_trap_p, at tree-eh.c:2679 since r275982 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- One more IPA SRA related issue: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr60647-1.c -fno-ipa-cp -O3 -fno-early-inlining during RTL pass: expand /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr60647-1.c: In function ‘fn5’: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr60647-1.c:14:5: internal compiler error: tree check: expected tree that contains ‘decl common’ structure, have ‘integer_cst’ in tree_could_trap_p, at tree-eh.c:2679 14 | a = winInfo->width; | ~~^~~~~~~~~~~~~~~~ 0x7357ae tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) /home/marxin/Programming/gcc/gcc/tree.c:10097 0x6cb289 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /home/marxin/Programming/gcc/gcc/tree.h:3381 0x6cb289 tree_could_trap_p(tree_node*) /home/marxin/Programming/gcc/gcc/tree-eh.c:2679 0xa3cb2e set_mem_attributes_minus_bitpos(rtx_def*, tree_node*, int, poly_int<1u, long>) /home/marxin/Programming/gcc/gcc/emit-rtl.c:2019 0xa6575b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.c:10404 0xa65c6c expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.c:9997 0xa6ff85 store_expr(tree_node*, rtx_def*, int, bool, bool) /home/marxin/Programming/gcc/gcc/expr.c:5688 0xa7139f expand_assignment(tree_node*, tree_node*, bool) /home/marxin/Programming/gcc/gcc/expr.c:5450 0x94ebff expand_gimple_stmt_1 /home/marxin/Programming/gcc/gcc/cfgexpand.c:3777 0x94ebff expand_gimple_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:3875 0x954a41 expand_gimple_basic_block /home/marxin/Programming/gcc/gcc/cfgexpand.c:5915 0x956747 execute /home/marxin/Programming/gcc/gcc/cfgexpand.c:6555 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.