https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121724
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Nathaniel Shead <[email protected]>: https://gcc.gnu.org/g:597bc675e6f5392caee0c423b9a6c5c1b8e93db5 commit r15-10287-g597bc675e6f5392caee0c423b9a6c5c1b8e93db5 Author: Nathaniel Shead <[email protected]> Date: Mon Sep 1 21:28:03 2025 +1000 c++/modules: Mark implicit inline namespaces as purview [PR121724] When we push an existing namespace within the module purview for the first time, we also need to mark any parent inline namespaces as purview to not confuse the streaming logic. PR c++/121724 gcc/cp/ChangeLog: * name-lookup.cc (push_namespace): Mark inline namespace contexts as purview if needed. gcc/testsuite/ChangeLog: * g++.dg/modules/namespace-12_a.C: New test. * g++.dg/modules/namespace-12_b.C: New test. Signed-off-by: Nathaniel Shead <[email protected]> (cherry picked from commit 03505e5b93e635907ed5ef7edac11da4026655e2)
