https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120195
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathaniel Shead <nsh...@gcc.gnu.org>: https://gcc.gnu.org/g:f0c761165929cded4ae08fd5151b483f786bb1b0 commit r16-3274-gf0c761165929cded4ae08fd5151b483f786bb1b0 Author: Nathaniel Shead <nathanielosh...@gmail.com> Date: Sun Aug 17 13:00:15 2025 +1000 c++/modules: Fix exporting using-decls of unattached purview functions [PR120195] We have logic to adjust a function decl if it gets re-declared as a using-decl with different purviewness, but we also need to do the same if it gets redeclared with different exportedness. PR c++/120195 gcc/cp/ChangeLog: * name-lookup.cc (do_nonmember_using_decl): Also handle change in exportedness of a function. gcc/testsuite/ChangeLog: * g++.dg/modules/using-32_a.C: New test. * g++.dg/modules/using-32_b.C: New test. Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>