https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109790
Bug ID: 109790 Summary: internal compiler error in write_member_name, at cp/mangle.cc:2992 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric.niebler at gmail dot com Target Milestone: --- Created attachment 55032 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55032&action=edit the result of -freport-bug Compile the attached test_when_all.i.cpp with: g++ -std=c++20 -fext-numeric-literals -Wno-non-template-friend \ test_when_all.i.cpp Result: In file included from /home/eniebler/Code/stdexec/include/stdexec/execution.hpp:35, from /home/eniebler/Code/stdexec/test/stdexec/algos/adaptors/test_when_all.cpp:18: /home/eniebler/Code/stdexec/include/stdexec/__detail/__tuple.hpp: In instantiation of ‘constexpr stdexec::__tup::__tuple_for<_Ts ...> stdexec::__tup::__make_tuple_fn::operator()(_Ts ...) const [with _Ts = {____C_A_T_C_H____T_E_S_T____24()::<lambda(int, int, int)>}]’: /home/eniebler/Code/stdexec/include/stdexec/__detail/__tuple.hpp:284:37: required from here /home/eniebler/Code/stdexec/include/stdexec/__detail/__tuple.hpp:284:37: internal compiler error: in write_member_name, at cp/mangle.cc:2992 284 | constexpr __tuple_for<_Ts...> operator()(_Ts... __ts) const | ^~~~~~~~ 0x9acf33 write_member_name ../../gcc/cp/mangle.cc:2992 0x9ace8f write_member_name ../../gcc/cp/mangle.cc:2999 0x9ad8ce write_expression ../../gcc/cp/mangle.cc:3668 0x9adecc write_expression ../../gcc/cp/mangle.cc:3592 0x9b290c write_type ../../gcc/cp/mangle.cc:2489 0x9b198c write_template_args ../../gcc/cp/mangle.cc:2966 0x9b7e2f write_nested_name ../../gcc/cp/mangle.cc:1154 0x9b26de write_class_enum_type ../../gcc/cp/mangle.cc:2937 0x9b26de write_type ../../gcc/cp/mangle.cc:2362 0x9b6739 write_bare_function_type ../../gcc/cp/mangle.cc:2856 0x9b699b write_mangled_name ../../gcc/cp/mangle.cc:799 0x9b8827 mangle_decl_string ../../gcc/cp/mangle.cc:4143 0x9b8ac8 get_mangled_id ../../gcc/cp/mangle.cc:4164 0x9b8ac8 mangle_decl(tree_node*) ../../gcc/cp/mangle.cc:4202 0x15934b5 decl_assembler_name(tree_node*) ../../gcc/tree.cc:715 0x15c6d59 assign_assembler_name_if_needed(tree_node*) ../../gcc/tree.cc:830 0xd126f1 cgraph_node::analyze() ../../gcc/cgraphunit.cc:677 0xd15f7a analyze_functions ../../gcc/cgraphunit.cc:1247 0xd170ed symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.cc:2554 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.