From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 752543858CDA; Wed, 28 Dec 2022 09:37:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 752543858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672220250; bh=WBOoDJ0kqxm/gjxdpqapKKebIeQ2JXdYLvbtlOvzZNQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Pk2lluIBowQbM+cWoEJ+zCNp9AwjeEhKfY3NtlgFoefcOISiW22A4U038ETFbMK8x noqTgpUKg8rRNf0r8aO/uxJFxgE+k1heyc2Ho1yW4Jp4cT5YZwZZlFMAnhIUYgBa7s 4F6Ut71OvWZsP9xKdl3gD59Nj+3IJzw7tOAzAxHk= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107597] LTO causes static inline variables to get a non-uniqued global symbol Date: Wed, 28 Dec 2022 09:37:28 +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.3.1 X-Bugzilla-Keywords: lto, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107597 --- Comment #5 from Martin Li=C5=A1ka --- >=20 > So this is kind of feature. How the ODR violations are detected? ASAN emits=20 > I wonder if keeping weak flag disturbs something.=