From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6194D3858D34; Wed, 1 May 2024 07:26:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6194D3858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714548376; bh=YX37By3t7rT5iNlJo2l2SzTn6lPDDkh7PmpVawAudjw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xVJqxRaHEcfB0ukJygsuuUaWnaEe8jf7DNFENzMUa2m/hNX/wH/Ne5qwHb2oRH1bP pL31yKzB3HVpLJeL0ycbQUGj2OZUd+QUTNKdTTw0LTlZuK6oAeQfKuwI9ig1chepar nrBEstAOH2yEAFtp1g+pGjYOcw3whfKB/lkR2VLQ= From: "nshead at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114868] [modules] func declared in GMF and exported via using-decl in module partition is not actually exported Date: Wed, 01 May 2024 07:26:16 +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: 14.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: nshead at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nshead at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed assigned_to cc target_milestone cf_reconfirmed_on bug_status see_also 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=3D114868 Nathaniel Shead changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |nshead at gcc dot g= nu.org CC| |nshead at gcc dot gnu.org Target Milestone|--- |14.2 Last reconfirmed| |2024-05-01 Status|UNCONFIRMED |ASSIGNED See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D114683 --- Comment #2 from Nathaniel Shead --- Fixed for GCC 15 so far. Non-functions don't always work, which is largely tracked in PR c++/114683. We also might not correctly differentiate unscoped enums from using enum declarations for this purpose, but it's hard to tell before PR114683 is fixed. For instance: // using_enum_a.cpp module; namespace foo { enum class a { x, y, z }; } export module M:a; namespace bar { export using enum foo::a; } // using_enum_b.cpp export module M; export import :a; // using_enum_c.cpp import M; int main() { auto x =3D bar::x; }=