cp-tree.h (OVL_HIDDEN_P): New.
authorNathan Sidwell <nathan@acm.org>
Wed, 24 May 2017 11:28:54 +0000 (11:28 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 24 May 2017 11:28:54 +0000 (11:28 +0000)
commitef4c5e7855ea00a62487c0d34915d66946032172
treede86db645e445af4e19f288d8422859e96b4e191
parentb7fc9ae0aabaf8c95c524031659b0a17bf597c9e
cp-tree.h (OVL_HIDDEN_P): New.

gcc/cp/
* cp-tree.h (OVL_HIDDEN_P): New.
(ovl_iterator::hidden_p, ovl_iterator::reveal_node): New.
(ovl_iterator::reveal_node): Declare.
* tree.c (ovl_copy): Copy OVL_HIDDEN_P.
(ovl_insert): Order on hiddenness.
(ovl_iterator::reveal_node): New.
* name-lookup.c (anticipated_builtin_p): New.
(supplement_binding_1): Use it.
(set_local_extern_decl_linkage): Use hidden_p.
(do_pushdecl): Deal with unhiding a hidden decl, use
anticipated_builtin_p.
(do_nonmember_using_decl): Use anticipated_decl_p.
(lookup_name_real_1): Use DECL_HIDDEN_P.

gcc/testsuite/
* g++.dg/lookup/extern-c-hidden.C: New.
* g++.dg/lookup/extern-redecl1.C: New.

From-SVN: r248406
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/extern-c-hidden.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/extern-redecl1.C [new file with mode: 0644]