From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1E34B3858C50; Sat, 11 Mar 2023 23:32:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E34B3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678577544; bh=Yn/x8LhDtFBIVEDuGdxOqBCwY7b0S2whHg6rzwWO+T8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Vciid7ypSR3r/3d/wkA0Ypn0XHQkE9N32V20/70XPiUJqHQb6llLCFLcbWkF0mGdi 4md1J6EWXAfbhkrSY62/Qzh20sp4a8AkvDM7OVk2xxY5V5CTSGDsiHY6qEndi6rDQG 6DQlxXuG69kJyxNRruogjXO0/alPaJVOPGm6kC5A= From: "mail at maciej dot szmigiero.name" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/70476] C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage Date: Sat, 11 Mar 2023 23:32:23 +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: unknown X-Bugzilla-Keywords: link-failure, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mail at maciej dot szmigiero.name 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: cc 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=3D70476 Maciej S. Szmigiero changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mail at maciej dot szmigie= ro.name --- Comment #8 from Maciej S. Szmigiero = --- Having functions with "C" language linkage (calling convention, etc) but internal linkage is useful for writing callbacks provided to C functions. It's not an significant issue, however, as one can get the same effect by declaring the callback function "static" inside an "extern C" block.=