From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C3753858403; Mon, 24 Oct 2022 19:53:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C3753858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666641211; bh=CozgufeU0gE8PQoai7asUBjc90Zc+W2bBHinYpVpjT0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Fb/QFA8T/QW/iWWbtgORUdEHudfMLhsYq6TOLLf75uyAV78Ej1PhWzKUFTpKBbEdD I8wOXVGMB4EcLiMIkTmTNyOxp9xmhdezPpzum9r3ZJruaRjThjkrPpfqEqLGqMku2D GDz4hw5xVOYSul9Z+OqA+j3nKvAfZpe7lFmaemmQ= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106363] [13 Regression] [modules] Can't selectively reexport imported declaration in same namespace Date: Mon, 24 Oct 2022 19:53:30 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp 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: short_desc 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=3D106363 Johel Ernesto Guerrero Pe=C3=B1a changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[modules] Can't selectively |[13 Regression] [modules] |reexport imported |Can't selectively reexport |declaration in same |imported declaration in |namespace |same namespace --- Comment #1 from Johel Ernesto Guerrero Pe=C3=B1a --- Reexporting is not the problem. The _using-declaration_ is. Reproducer script: ```bash #!/bin/bash CXX=3Dg++ echo "mod2 mod2.gcm mod mod.gcm" > mm.txt echo "export module mod2; namespace ns { export int x =3D 0; }" > mod2.cpp echo "export module mod; import mod2; namespace ns { export using ns::x; }" > mod.cpp $CXX -std=3Dc++23 -fmodules-ts -fmodule-mapper=3Dmm.txt -c mod2.cpp $CXX -std=3Dc++23 -fmodules-ts -fmodule-mapper=3Dmm.txt -c mod.cpp ```=