https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106363

Johel Ernesto Guerrero Peña <johelegp at gmail dot com> 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ña <johelegp at gmail dot com> ---
Reexporting is not the problem. The _using-declaration_ is.

Reproducer script:
```bash
#!/bin/bash
CXX=g++
echo "mod2 mod2.gcm
mod mod.gcm" > mm.txt
echo "export module mod2;
namespace ns {
export int x = 0;
}" > mod2.cpp
echo "export module mod;
import mod2;
namespace ns {
export using ns::x;
}" > mod.cpp
$CXX -std=c++23 -fmodules-ts -fmodule-mapper=mm.txt -c mod2.cpp
$CXX -std=c++23 -fmodules-ts -fmodule-mapper=mm.txt -c mod.cpp
```

Reply via email to