diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-08-17 13:00:15 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-08-19 12:32:17 +1000 |
commit | f0c761165929cded4ae08fd5151b483f786bb1b0 (patch) | |
tree | 9de3c0687a21761013ce4f8c35195b887d40f4e4 /gcc/testsuite/gcc.dg/torture/pr71594.c | |
parent | 82e4932623e57ded0f9303621fe329ee5aaba508 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
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 <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr71594.c')
0 files changed, 0 insertions, 0 deletions