From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79B7E386F837; Mon, 15 Jun 2020 12:07:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79B7E386F837 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592222847; bh=vjTD9dXgoYI/+pFeqGdP3Tsp1tADlG+lrNYFyrEYhTo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pbh3jejwmdrulIRLWQQlXOxHFvDb1ohYGQrdJbDO2dSTqo2xVovM7gOv1i9zHP60Z Xtg+teu8yudEPtpC1wzefqklqOS0148aJlmASt8Hu88depBaDwbyq4KtkYa749noba 7RPnRg0xlp0KVzlrOE3D/ChoN7yneQmGcOyh5AJg= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95677] undefined reference to `(anonymous namespace)::xx' Date: Mon, 15 Jun 2020 12:07:27 +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: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: keywords 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: Mon, 15 Jun 2020 12:07:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95677 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid --- Comment #5 from Richard Biener --- (In reply to Nathan Sidwell from comment #3) > I think the testcase is should be formed. it was ok in C++98, but that Should be ill-formed you wanted to say? Even better. Note with -std=3Dc++= 98 we still would have the wrong-code issue. > changed when anonymous namespaces gave their contents internal linkage > (rather than external but with unpronounceable symbols). >=20 > [basic.link]/6 does not anticipate this issue.=