https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109679
--- Comment #4 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:63b531e6f8783e8624502d890dc422379de47a9a commit r14-6978-g63b531e6f8783e8624502d890dc422379de47a9a Author: Nathaniel Shead <nathanielosh...@gmail.com> Date: Wed Jan 3 15:29:51 2024 +1100 c++: Export usings referring to global module fragment [PR109679] This patch stops 'add_binding_entity' from ignoring all names in the global module fragment, since they should still be exported if named in an exported using-declaration. PR c++/109679 gcc/cp/ChangeLog: * module.cc (depset::hash::add_binding_entity): Don't skip names in the GMF if they've been exported with a using declaration. gcc/testsuite/ChangeLog: * g++.dg/modules/using-11.h: New test. * g++.dg/modules/using-11_a.C: New test. * g++.dg/modules/using-11_b.C: New test. Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>