From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C01A3858417; Wed, 10 Apr 2024 20:22:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C01A3858417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712780542; bh=CayPB60t5xpsPma8xZiO6rlsmH8QjAQyIAyeez8Bx8Y=; h=From:To:Subject:Date:From; b=ZkYPoPyH4pKTW94yWpcna21SVzWZXlgosDwy3DWrL5dVCvgA6ELyDOmhc6Kxp6T2G SrDgr4VhOrZpXBXXLnuvq1HOLQOm03tmsxF0lPSANPjYeFQC4kqeOCa4c2RZ969Z5O /LXdrV9ojTsZaGRlSm/U3QIz9rtM4oNNFxnSDieI= From: "m.cencora at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114683] New: [modules] name declared in GMF in inline namespace and exported via using-decl from parent namespace is not visible to importer Date: Wed, 10 Apr 2024 20:22:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: m.cencora at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D114683 Bug ID: 114683 Summary: [modules] name declared in GMF in inline namespace and exported via using-decl from parent namespace is not visible to importer Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m.cencora at gmail dot com Target Milestone: --- $ cat std.cpp module; #include "std.h" export module std; export namespace std { #ifdef WORKAROUND inline namespace __cxx11 { using std::__cxx11::basic_string; } #else using std::basic_string; #endif } $ cat std.h #pragma once namespace std { inline namespace __cxx11 { template struct basic_string{}; } } $ cat std_user.cpp=20 import std; int main() { using std::basic_string; } $ g++ -std=3Dc++2b -fmodules-ts std.cpp std_user.cpp std_user.cpp: In function =E2=80=98int main()=E2=80=99: std_user.cpp:5:12: error: =E2=80=98basic_string=E2=80=99 has not been decla= red in =E2=80=98std=E2=80=99 Works fine on clang. Reduced from standard library headers.=