c++: Exported using decls
authorNathan Sidwell <nathan@acm.org>
Thu, 3 Dec 2020 20:38:15 +0000 (12:38 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 3 Dec 2020 20:40:09 +0000 (12:40 -0800)
commita3f7a6957a674caf95c4aefa618be51092022e87
tree4c8ad0df074550f848498398af5dccf26d555033
parentf7aeb823d9b0dee572015810cdb58103e91758f3
c++: Exported using decls

With modules we need to record whethe a (namespace-scope) using decl
is exporting the named entities.  Record this on the OVERLOAD marking
the used decl.

gcc/cp/
* cp-tree.h (OVL_EXPORT): New.
(class ovl_iterator): Add get_using, exporting_p.
* tree.c (ovl_insert): Extend using_or_hidden meaning to include
an exported using.
gcc/cp/cp-tree.h
gcc/cp/tree.c