https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92222
Bug ID: 92222 Summary: ice in useless_type_conversion_p, at gimple-expr.c:86 Product: gcc Version: 10.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 47110 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47110&action=edit C source code The attached C code, when compiled by recent gcc trunk and compiler flag -O3, does this: ../results.277350/bin/gcc during GIMPLE pass: slp main.c: In function ‘disp_binary’: main.c:234:13: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:86 0x71c6dd tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../trunk/gcc/tree.c:9975 0x626a1b tree_class_check(tree_node*, tree_code_class, char const*, int, char co nst*) ../../trunk/gcc/tree.h:3390 0x626a1b useless_type_conversion_p(tree_node*, tree_node*) ../../trunk/gcc/gimple-expr.c:86 0xea3fe4 verify_gimple_assign_single ../../trunk/gcc/tree-cfg.c:4545 0xea3fe4 verify_gimple_assign ../../trunk/gcc/tree-cfg.c:4609 The problem seems to start sometime between revision 277300 and 277350. I will have my usual go at reducing the code.