From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14AF33857C5B; Thu, 11 Nov 2021 10:41:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14AF33857C5B From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103186] [11/12 Regression] redefinition of template symbol error with strange error diagnostic Date: Thu, 11 Nov 2021 10:41:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: assemble-failure, ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status keywords target_milestone everconfirmed cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2021 10:41:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103186 Andrew Pinski 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 --- The ICE with reduced testcase: :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=