https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109696
Bug ID: 109696 Summary: ice: tree check fail Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this C code: sprint_tm(long ns) { char buf; double t = ns; if (t) sprintf(buf, ""); } wait_for_reply_avg() { sprint_tm(wait_for_reply_avg); } compiled by recent trunk gcc, does this: $ ~/gcc/results.20230502.asan.ubsan/bin/gcc -c -w -O2 bug915.c during IPA pass: inline bug915.c:7:1: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060 7 | wait_for_reply_avg() { sprint_tm(wait_for_reply_avg); } | ^~~~~~~~~~~~~~~~~~ 0x115a4fa tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../trunk.year/gcc/tree.cc:8948 0x1183d13 tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) ../../trunk.year/gcc/tree.h:3663 0x1183d13 irange::verify_range() ../../trunk.year/gcc/value-range.cc:1060 It was fine yesterday: $ ~/gcc/results.20230501.asan.ubsan/bin/gcc -c -w -O2 bug915.c $ I suspect this is another one for Aldy.