https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91241
Bug ID: 91241 Summary: internal compiler error: symtab_node::verify failed Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- struct A { int *b(const int & = []() -> int { return 0; }(), const int & = []() -> int { return 0; }()); }; int *A::b(const int &, const int &) { b(); return 0; } $ ./cc1plus -quiet ice.C ice.C:4:54: error: Two symbols with same comdat_group are not linked by the same_comdat_group list. 4 | int *A::b(const int &, const int &) { b(); return 0; } | ^ _ZZN1A1bERKiS1_Ed_NKUlvE_clEv/3 (A::<lambda()>) @0x7f4d010e7708 Type: function definition analyzed Visibility: no_reorder public weak comdat comdat_group:_ZZN1A1bERKiS1_Ed_NKUlvE_clEv one_only artificial previous sharing asm name: 0 References: Referring: Function flags: body Called by: int* A::b(const int&, const int&)/6 Calls: _ZZN1A1bERKiS1_Ed_NKUlvE_clEv/0 (A::<lambda()>) @0x7f4d010e72d0 Type: function definition analyzed Visibility: no_reorder public weak comdat comdat_group:_ZZN1A1bERKiS1_Ed_NKUlvE_clEv one_only artificial next sharing asm name: 3 References: Referring: Function flags: body Called by: int* A::b(const int&, const int&)/6 Calls: ice.C:4:54: internal compiler error: symtab_node::verify failed 0xd49c47 symtab_node::verify_symtab_nodes() /home/mpolacek/src/gcc/gcc/symtab.c:1310 0xd7073c symtab_node::checking_verify_symtab_nodes() /home/mpolacek/src/gcc/gcc/cgraph.h:646 0xd6e921 symbol_table::compile() /home/mpolacek/src/gcc/gcc/cgraphunit.c:2598 0xd6ef62 symbol_table::finalize_compilation_unit() /home/mpolacek/src/gcc/gcc/cgraphunit.c:2861 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.