https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105871
Bug ID: 105871 Summary: ICE: in wide_int_to_tree_1, at tree.cc:1777 with __builtin_shufflevector() in C++ code Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 53098 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53098&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc testcase.C testcase.C: In function 'void foo()': testcase.C:7:47: internal compiler error: in wide_int_to_tree_1, at tree.cc:1777 7 | __builtin_shufflevector ((U){}, (V){}, 0) / 1; | ^ 0x8f4c57 wide_int_to_tree_1 /repo/gcc-trunk/gcc/tree.cc:1777 0x198473f wide_int_to_tree(tree_node*, poly_int<1u, generic_wide_int<wide_int_ref_storage<false, true> > > const&) /repo/gcc-trunk/gcc/tree.cc:1889 0x198473f build_int_cst(tree_node*, poly_int<1u, long>) /repo/gcc-trunk/gcc/tree.cc:1529 0xe5be5d cxx_eval_bit_field_ref /repo/gcc-trunk/gcc/cp/constexpr.cc:4211 0xe4d50e cxx_eval_constant_expression /repo/gcc-trunk/gcc/cp/constexpr.cc:7177 0xe51576 cxx_eval_outermost_constant_expr /repo/gcc-trunk/gcc/cp/constexpr.cc:7863 0xe5607d maybe_constant_value(tree_node*, tree_node*, bool) /repo/gcc-trunk/gcc/cp/constexpr.cc:8141 0xe846b4 cp_fully_fold(tree_node*) /repo/gcc-trunk/gcc/cp/cp-gimplify.cc:2353 0xe846b4 cp_fully_fold(tree_node*) /repo/gcc-trunk/gcc/cp/cp-gimplify.cc:2345 0x108364a cp_build_binary_op(op_location_t const&, tree_code, tree_node*, tree_node*, int) /repo/gcc-trunk/gcc/cp/typeck.cc:6273 0xe1f988 build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, int) /repo/gcc-trunk/gcc/cp/call.cc:6935 0x1075abe build_x_binary_op(op_location_t const&, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node*, tree_node**, int) /repo/gcc-trunk/gcc/cp/typeck.cc:4565 0xf7fa5b cp_parser_binary_expression /repo/gcc-trunk/gcc/cp/parser.cc:10209 0xf801dc cp_parser_assignment_expression /repo/gcc-trunk/gcc/cp/parser.cc:10347 0xf81cb2 cp_parser_expression /repo/gcc-trunk/gcc/cp/parser.cc:10517 0xf852a8 cp_parser_expression_statement /repo/gcc-trunk/gcc/cp/parser.cc:12734 0xf922ff cp_parser_statement /repo/gcc-trunk/gcc/cp/parser.cc:12526 0xf9347d cp_parser_statement_seq_opt /repo/gcc-trunk/gcc/cp/parser.cc:12883 0xf93558 cp_parser_compound_statement /repo/gcc-trunk/gcc/cp/parser.cc:12835 0xfb3a95 cp_parser_function_body /repo/gcc-trunk/gcc/cp/parser.cc:25184 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-r13-1003-20220607102453-gcef3f69c2f4-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.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 --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 --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r13-1003-20220607102453-gcef3f69c2f4-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220607 (experimental) (GCC)