https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120631
Bug ID: 120631 Summary: [16 Regression] ICE: in decimal_integer_string, at real.cc:2342 when mixing _BitInt() and _Decimal constants Product: gcc Version: 16.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 Target: aarch64-unknown-linux-gnu Created attachment 61623 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61623&action=edit reduced testcase Compiler output: $ aarch64-unknown-linux-gnu-gcc testcase.c testcase.c: In function 'foo': testcase.c:4:3: internal compiler error: in decimal_integer_string, at real.cc:2342 4 | 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffwb + 0.df; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x264a441 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xc20eed fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1803 0x8c43f3 decimal_integer_string /repo/gcc-trunk/gcc/real.cc:2342 0x8c43f3 decimal_from_integer /repo/gcc-trunk/gcc/real.cc:2371 0x8c43f3 real_from_integer(real_value*, format_helper, generic_wide_int<wide_int_ref_storage<false, true> > const&, signop) /repo/gcc-trunk/gcc/real.cc:2312 0x17a0d8d real_value_from_int_cst(tree_node const*, tree_node const*) /repo/gcc-trunk/gcc/tree.cc:2516 0x17a0dee build_real_from_int_cst(tree_node*, tree_node const*) /repo/gcc-trunk/gcc/tree.cc:2530 0xf7f43a fold_convert_const /repo/gcc-trunk/gcc/fold-const.cc:2506 0xf93744 fold_unary_loc(unsigned long, tree_code, tree_node*, tree_node*) /repo/gcc-trunk/gcc/fold-const.cc:9226 0xfad3d2 fold(tree_node*) /repo/gcc-trunk/gcc/fold-const.cc:13557 0xcfa2a8 convert_and_check(unsigned long, tree_node*, tree_node*, bool) /repo/gcc-trunk/gcc/c-family/c-common.cc:1834 0xc85e1b build_binary_op(unsigned long, tree_code, tree_node*, tree_node*, bool) /repo/gcc-trunk/gcc/c/c-typeck.cc:14839 0xc8a21f parser_build_binary_op(unsigned long, tree_code, c_expr, c_expr) /repo/gcc-trunk/gcc/c/c-typeck.cc:4685 0xcb53a5 c_parser_binary_expression /repo/gcc-trunk/gcc/c/c-parser.cc:10391 0xcb65c6 c_parser_conditional_expression /repo/gcc-trunk/gcc/c/c-parser.cc:9956 0xcb6df4 c_parser_expr_no_commas /repo/gcc-trunk/gcc/c/c-parser.cc:9869 0xcb8657 c_parser_expression /repo/gcc-trunk/gcc/c/c-parser.cc:13967 0xcb8e9a c_parser_expression_conv /repo/gcc-trunk/gcc/c/c-parser.cc:14026 0xca8db7 c_parser_statement_after_labels /repo/gcc-trunk/gcc/c/c-parser.cc:8404 0xcad1e0 c_parser_compound_statement_nostart /repo/gcc-trunk/gcc/c/c-parser.cc:7805 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. $ aarch64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20250611071606-r16-1410-ge477e7cd104af9-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/16.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --enable-libsanitizer --with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu --with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-20250611071606-r16-1410-ge477e7cd104af9-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250611 (experimental) (GCC)