[Bug c++/109679] export using for functions does not work as specified
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 7 10:52:20 GMT 2024
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 <nshead@gcc.gnu.org>:
https://gcc.gnu.org/g:63b531e6f8783e8624502d890dc422379de47a9a
commit r14-6978-g63b531e6f8783e8624502d890dc422379de47a9a
Author: Nathaniel Shead <nathanieloshead@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 <nathanieloshead@gmail.com>
More information about the Gcc-bugs
mailing list