https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118522
Bug ID: 118522 Summary: ICE: 'verify_gimple' failed: mismatching comparison operand types with _BitInt(32) cast to double and compared Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz CC: jakub at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 60180 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60180&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc testcase.c testcase.c: In function 'foo': testcase.c:4:1: error: mismatching comparison operand types 4 | foo(unsigned short p) | ^~~ int _BitInt(32) _3 = _1 == b.0_2; testcase.c:4:1: internal compiler error: 'verify_gimple' failed 0x2de1b21 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0x16d448e verify_gimple_in_seq(gimple*, bool) /repo/gcc-trunk/gcc/tree-cfg.cc:5333 0x130013a gimplify_body(tree_node*, bool) /repo/gcc-trunk/gcc/gimplify.cc:20653 0x1300355 gimplify_function_tree(tree_node*) /repo/gcc-trunk/gcc/gimplify.cc:20779 0x110ab67 cgraph_node::analyze() /repo/gcc-trunk/gcc/cgraphunit.cc:689 0x110d7e7 analyze_functions /repo/gcc-trunk/gcc/cgraphunit.cc:1265 0x110e79d symbol_table::finalize_compilation_unit() /repo/gcc-trunk/gcc/cgraphunit.cc:2574 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20250116125444-r15-6956-g80b52301e8ee9a-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-20250116125444-r15-6956-g80b52301e8ee9a-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.1 20250116 (experimental) (GCC)