https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120883
Bug ID: 120883 Summary: internal compiler error: in write_type, at cp/mangle.cc:2687 since 13.1 Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mario.rodriguezb1 at um dot es Target Milestone: --- Similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120275: Program: ``` #include <tuple> int main() { apply( [](auto&&... a) { decltype(auto) l = {a...}; return l; }, std::make_tuple(1, 2.3, '4') ); return 0; } ``` Stack dump: ``` In file included from /opt/compiler-explorer/gcc-trunk-20250630/include/c++/16.0.0/tuple:43, from <source>:2: /opt/compiler-explorer/gcc-trunk-20250630/include/c++/16.0.0/bits/invoke.h:62:5: internal compiler error: in write_type, at cp/mangle.cc:2687 62 | __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) | ^~~~~~~~~~~~~ 0x2844425 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x2866fc6 internal_error(char const*, ...) ???:0 0xaede72 fancy_abort(char const*, int, char const*) ???:0 0xc3dda9 mangle_decl(tree_node*) ???:0 0x1827ab5 decl_assembler_name(tree_node*) ???:0 0x1850d97 assign_assembler_name_if_needed(tree_node*) ???:0 0xf521bf cgraph_node::analyze() ???:0 0xf55791 symbol_table::finalize_compilation_unit() ???:0 ``` To quickly reproduce: https://godbolt.org/z/3aGnzjzve