https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109711
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords|needs-reduction | Last reconfirmed| |2023-05-03 Ever confirmed|0 |1 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- I reduced that to: $ cat pr109711.i void lspf2lpc(); int interpolate_lpc_q_0; void interpolate_lpc(int subframe_num) { float weight; if (interpolate_lpc_q_0) weight = subframe_num; else weight = 1.0; if (weight != 1.0) lspf2lpc(); } void qcelp_decode_frame() { int i; for (;; i++) interpolate_lpc(i); } $ /dev/shm/objdir2/gcc/xgcc -B/dev/shm/objdir2/gcc pr109711.i -c -O2 during IPA pass: inline pr109711.i:21:1: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060 21 | } | ^ 0x84dfd7 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /home/marxin/Programming/gcc/gcc/tree.cc:8949 0x85baff tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) /home/marxin/Programming/gcc/gcc/tree.h:3663 0x85baff irange::verify_range() /home/marxin/Programming/gcc/gcc/value-range.cc:1060 0x1279d97 irange::operator=(irange const&) /home/marxin/Programming/gcc/gcc/value-range.cc:923 0xcd61a7 int_range<2u>::operator=(int_range<2u> const&) /home/marxin/Programming/gcc/gcc/value-range.h:817 0xcd61a7 evaluate_conditions_for_known_args /home/marxin/Programming/gcc/gcc/ipa-fnsummary.cc:517 0xcee9c5 do_estimate_edge_size(cgraph_edge*) /home/marxin/Programming/gcc/gcc/ipa-inline-analysis.cc:335 0xcf1465 estimate_edge_size(cgraph_edge*) /home/marxin/Programming/gcc/gcc/ipa-inline.h:79 0xcf1465 estimate_edge_growth(cgraph_edge*) /home/marxin/Programming/gcc/gcc/ipa-inline.h:100 0xcefe15 do_estimate_growth_1 /home/marxin/Programming/gcc/gcc/ipa-inline-analysis.cc:434 0xcefef6 cgraph_node::call_for_symbol_and_aliases(bool (*)(cgraph_node*, void*), void*, bool) /home/marxin/Programming/gcc/gcc/cgraph.h:3412 0xcefef6 estimate_growth(cgraph_node*) /home/marxin/Programming/gcc/gcc/ipa-inline-analysis.cc:472 0x1d972c4 inline_small_functions /home/marxin/Programming/gcc/gcc/ipa-inline.cc:2042 0x1d972c4 ipa_inline /home/marxin/Programming/gcc/gcc/ipa-inline.cc:2811 0x1d972c4 execute /home/marxin/Programming/gcc/gcc/ipa-inline.cc:3210 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.