]> gcc.gnu.org Git - gcc.git/commit
c++: Propagate hidden flag on decls from partitions
authorNathaniel Shead <nathanieloshead@gmail.com>
Tue, 9 Apr 2024 11:52:38 +0000 (21:52 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Wed, 1 May 2024 05:59:14 +0000 (15:59 +1000)
commit3032ebf0c9b769f02f494e97417a1b68ad59c884
tree85f472ac66ba668db315df5fec7c829d9ec4c2fc
parent0d0215b10dbbe39d655ceda4af283f288ec7680c
c++: Propagate hidden flag on decls from partitions

While working on some other fixes I noticed that the partition handling
code used the wrong flag to propagate OVL_HIDDEN_P on exported bindings
from partitions. This patch fixes that, and renames the flag to be
clearer.

gcc/cp/ChangeLog:

* name-lookup.cc (walk_module_binding): Use the
partition-specific hidden flag instead of the top-level
decl_hidden.

gcc/testsuite/ChangeLog:

* g++.dg/modules/using-16_a.C: New test.
* g++.dg/modules/using-16_b.C: New test.
* g++.dg/modules/using-16_c.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/cp/name-lookup.cc
gcc/testsuite/g++.dg/modules/using-16_a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/modules/using-16_b.C [new file with mode: 0644]
gcc/testsuite/g++.dg/modules/using-16_c.C [new file with mode: 0644]
This page took 0.0598 seconds and 5 git commands to generate.