https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121702
Nathaniel Shead <nshead at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-08-29 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=117613 Summary|[Modules] `export namespace |[modules] ICE when |N { using namespace M; }` |exporting a using namespace |does not export. |referring to an imported | |namespace Resolution|INVALID |--- Ever confirmed|0 |1 Status|RESOLVED |NEW --- Comment #7 from Nathaniel Shead <nshead at gcc dot gnu.org> --- Your example should work, yes. We only have supported the name lookup behaviour of using namespace since GCC 16 though, see PR117613. But it looks like your example actually crashes on trunk! We use the index into the exported namespace list to stream it, but because 'a' is an imported namespace we don't have a matching lookup. Thanks for the report :)