https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101530
Bug ID: 101530 Summary: ICE: 'verify_gimple' failed: non-top-level 'bit_field_ref' with __builtin_shufflevector()[0] Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 51178 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51178&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc testcase.c testcase.c: In function 'foo': testcase.c:4:1: error: non-top-level 'bit_field_ref' 4 | foo(V v, int i) | ^~~ _2 = VIEW_CONVERT_EXPR<int>(BIT_FIELD_REF <_1, 32, 0>); testcase.c:4:1: internal compiler error: 'verify_gimple' failed 0x10e0a2d verify_gimple_in_seq(gimple*) /repo/gcc-trunk/gcc/tree-cfg.c:5188 0xdd0b46 gimplify_body(tree_node*, bool) /repo/gcc-trunk/gcc/gimplify.c:15526 0xdd0ccd gimplify_function_tree(tree_node*) /repo/gcc-trunk/gcc/gimplify.c:15597 0xbfa847 cgraph_node::analyze() /repo/gcc-trunk/gcc/cgraphunit.c:670 0xbfd327 analyze_functions /repo/gcc-trunk/gcc/cgraphunit.c:1234 0xbfdfcd symbol_table::finalize_compilation_unit() /repo/gcc-trunk/gcc/cgraphunit.c:2508 Please submit a full bug report, with preprocessed source if appropriate. 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-r12-2398-20210719103439-gf007a638a86-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.0/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 --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 --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-2398-20210719103439-gf007a638a86-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20210719 (experimental) (GCC)