From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 687DE384A87E; Wed, 15 Jul 2020 01:40:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 687DE384A87E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594777246; bh=5FvFh4S5siQWEBSvqnSfhGNNKDXrHqrNllY0QFAcscA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vtKTURWHJmu8s36JrA/VKIjPG8LOZrkDTxUrlZ0cqoWbgFaNLP+69U7IFl6W0VCpM sokdNeN06DQ8aH0rJFiMDsR+xmwq5FBlZZ1fc9KRGzdzETpqpNoJMY/UKOfvxX7uJ3 M4iB39mTxYNG2tHSVxSN25HDhGGQ+zSPH3YD4hBM= From: "sujian.liu at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95677] undefined reference to `(anonymous namespace)::xx' Date: Wed, 15 Jul 2020 01:40:46 +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: 10.1.0 X-Bugzilla-Keywords: accepts-invalid, lto, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sujian.liu at huawei dot com 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: --- 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 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: Wed, 15 Jul 2020 01:40:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95677 --- Comment #8 from liusujian --- (In reply to Nathan Sidwell from comment #6) > Ah, anonymous namespaces have internal linkage (and a program-wide unique > identifier). Their contents have the linkage they have. but because > they're within the anonumous namespace they cannot be named from elsewher= e, > so they have internal linkage for implementation purposes. >=20 > when we actually gave anonymous namespaces there would be no collisions > between TUs for '::x'. Now we give it a specific name and adjust t= he > linkages of their contents.=20 >=20 > The C++ FE should adjust the linkage of '::x' too. Hello, has there been any progress regarding the repair of this issue now?=