https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102797
Bug ID: 102797 Summary: ice in useless_type_conversion_p, at gimple-expr.c:87 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 51615 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51615&action=edit gzipped C source code For the attached C code, recent gcc trunk does this: ../src/plugins/task-lists-workspace/gtd-sidebar-list-row.c:264:1: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 Flags -w -march=bdver2 -O2 -fexceptions required. The bug first seems to occur between git hash be072bfa5bb38171 and 93d183a5fff92d80, so about 27 revisions. I have a reduction running in the other window now.