https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116681
Bug ID: 116681 Summary: [12/13/14/15 Regression] ICE: in start, at timevar.cc:491 with -ftime-report -std=c++20 Product: gcc Version: 15.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: x86_64-pc-linux-gnu Created attachment 59096 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59096&action=edit auto-reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -ftime-report -std=c++20 testcase.C testcase.C: In instantiation of 'struct reverse_iterator<int>': testcase.C:27:35: required from here 27 | for (set::reverse_iteratorINT iter;;) | ^~~~ testcase.C:3:44: internal compiler error: in start, at timevar.cc:491 3 | concept default_initializable = requires { new _Tp; }; | ^~~~~~~ 0x2ef1bbe internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xf557d3 fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1657 0x92fc85 timer::start(timevar_id_t) /repo/gcc-trunk/gcc/timevar.cc:491 0x92fc85 timer::start(timevar_id_t) /repo/gcc-trunk/gcc/timevar.cc:482 0x92fc85 timevar_start(timevar_id_t) /repo/gcc-trunk/gcc/timevar.cc:476 0x10e4845 qualified_namespace_lookup /repo/gcc-trunk/gcc/cp/name-lookup.cc:7424 0x10e599f lookup_qualified_name(tree_node*, tree_node*, LOOK_want, bool) /repo/gcc-trunk/gcc/cp/name-lookup.cc:7387 0xf79b3e build_operator_new_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node**, tree_node**, tree_node*, tree_node*, tree_node**, int) /repo/gcc-trunk/gcc/cp/call.cc:5194 0x1069721 build_new_1 /repo/gcc-trunk/gcc/cp/init.cc:3465 0x106b8cc build_new(unsigned int, vec<tree_node*, va_gc, vl_embed>**, tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, int, int) /repo/gcc-trunk/gcc/cp/init.cc:4068 0x117bece tsubst_expr(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:20767 0xfc20ad tsubst_valid_expression_requirement /repo/gcc-trunk/gcc/cp/constraint.cc:1444 0xfc86f7 tsubst_simple_requirement /repo/gcc-trunk/gcc/cp/constraint.cc:1478 0xfc86f7 tsubst_requirement /repo/gcc-trunk/gcc/cp/constraint.cc:1693 0xfc86f7 tsubst_requires_expr /repo/gcc-trunk/gcc/cp/constraint.cc:1833 0xfc8e2a tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/constraint.cc:1857 0x117ac05 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /repo/gcc-trunk/gcc/cp/pt.cc:21868 0xfca29b satisfy_atom /repo/gcc-trunk/gcc/cp/constraint.cc:2523 0xfca29b satisfy_constraint_r /repo/gcc-trunk/gcc/cp/constraint.cc:2588 0xfca6d3 satisfy_normalized_constraints /repo/gcc-trunk/gcc/cp/constraint.cc:2613 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-r15-3558-20240910125013-gc726a664312-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.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 --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r15-3558-20240910125013-gc726a664312-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240910 (experimental) (GCC)