https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108525

            Bug ID: 108525
           Summary: [13 Regression] ICE in write_method_parms, at
                    cp/mangle.cc:2864
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started between 20220925 and 20221009 :
(ok without "static")


$ cat z1.cc
auto b = [](...) static { return 1; };


$ g++-13-20230122 -c z1.cc -std=c++23
z1.cc:1:10: internal compiler error: Segmentation fault
    1 | auto b = [](...) static { return 1; };
      |          ^
0xeb575f crash_signal
        ../../gcc/toplev.cc:314
0x871e8d write_method_parms
        ../../gcc/cp/mangle.cc:2864
0x86ea28 write_closure_type_name
        ../../gcc/cp/mangle.cc:1819
0x86ea28 write_unqualified_name
        ../../gcc/cp/mangle.cc:1511
0x876dd7 write_prefix
        ../../gcc/cp/mangle.cc:1257
0x86f764 write_nested_name
        ../../gcc/cp/mangle.cc:1167
0x872031 write_encoding
        ../../gcc/cp/mangle.cc:853
0x87212c write_mangled_name
        ../../gcc/cp/mangle.cc:799
0x8726e1 mangle_decl_string
        ../../gcc/cp/mangle.cc:4108
0x87290b get_mangled_id
        ../../gcc/cp/mangle.cc:4129
0x87290b mangle_decl(tree_node*)
        ../../gcc/cp/mangle.cc:4167
0x113e512 decl_assembler_name(tree_node*)
        ../../gcc/tree.cc:717
0xa9b23f symtab_node::get_comdat_group_id()
        ../../gcc/cgraph.h:254
0xa9b23f analyze_functions
        ../../gcc/cgraphunit.cc:1192
0xa9c3fd symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2547

Reply via email to