https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119303
Bug ID: 119303 Summary: ICE: error reporting routines re-entered. in warning_at (diagnostic-global-context.cc:185) with -std=c++20 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: diagnostic, 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: x86_64-pc-linux-gnu Created attachment 60767 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60767&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -std=c++20 testcase.C -w -c $ x86_64-pc-linux-gnu-gcc -std=c++20 testcase.C internal compiler error: error reporting routines re-entered. 0x3105183 warning_at(unsigned long, diagnostic_option_id, char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:185 0x1313bb9 c_common_truthvalue_conversion(unsigned long, tree_node*) /repo/gcc-trunk/gcc/c-family/c-common.cc:3609 0x107ef83 ocp_convert(tree_node*, tree_node*, int, int, int) /repo/gcc-trunk/gcc/cp/cvt.cc:882 0x108006a cp_convert(tree_node*, tree_node*, int) /repo/gcc-trunk/gcc/cp/cvt.cc:643 0x108006a cp_convert_and_check(tree_node*, tree_node*, int) /repo/gcc-trunk/gcc/cp/cvt.cc:664 0xff80cf convert_like_internal /repo/gcc-trunk/gcc/cp/call.cc:9336 0xffc5ef convert_like /repo/gcc-trunk/gcc/cp/call.cc:9408 0xffc5ef perform_implicit_conversion_flags(tree_node*, tree_node*, int, int) /repo/gcc-trunk/gcc/cp/call.cc:13995 0x12b97ed cp_build_unary_op(tree_code, tree_node*, bool, int) /repo/gcc-trunk/gcc/cp/typeck.cc:7599 0x100b0c2 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:7673 0x12b811e build_x_unary_op(unsigned long, tree_code, cp_expr, tree_node*, int) /repo/gcc-trunk/gcc/cp/typeck.cc:6995 0x1229a5c tsubst_expr(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:20755 0x12306ad tsubst_expr(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:13002 0x12306ad tsubst_template_arg(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:13013 0x12306ad tsubst_template_arg(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:13001 0x123e704 tsubst_template_args(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:14221 0x1224f83 tsubst(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:16503 0x1225199 tsubst_entering_scope /repo/gcc-trunk/gcc/cp/pt.cc:10041 0x1225199 tsubst(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:17067 0x10ea5cc dump_template_bindings /repo/gcc-trunk/gcc/cp/error.cc:596 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-20250315085318-r15-8068-g254549d2bb9bb3-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-20250315085318-r15-8068-g254549d2bb9bb3-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.1 20250315 (experimental) (GCC)