https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103186
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords|link-failure |assemble-failure Target Milestone|--- |11.3 Ever confirmed|0 |1 Last reconfirmed| |2021-11-11 --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The ICE with reduced testcase: <source>:21:1: error: Two symbols with same comdat_group are not linked by the same_comdat_group list. 21 | } | ^ But this is with checking turned on only. Without checking we get an assembler failure: /tmp/ccBw63Kh.s: Assembler messages: /tmp/ccBw63Kh.s:147: Error: symbol `_ZZN12GetSetHelperIiE3setEPFvvEEd_NKUlvE_clEv' is already defined /tmp/ccBw63Kh.s:168: Error: symbol `_ZZN12GetSetHelperIiE3setEPFvvEEd_NUlvE_4_FUNEv' is already defined /tmp/ccBw63Kh.s:190: Error: symbol `_ZZN12GetSetHelperIiE3setEPFvvEEd_NKUlvE_cvS2_Ev' is already defined