cp-tree.h (DECL_HIDDEN_P): New.
authorNathan Sidwell <nathan@acm.org>
Tue, 23 May 2017 16:03:34 +0000 (16:03 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 23 May 2017 16:03:34 +0000 (16:03 +0000)
commite4ea7a4cfe438d0bdbede4b714aba50df01a4a76
tree8316666990b99a7bfca2daaef08f1fc10111e6dc
parent8a4674bb23450c036861f56aa88ad7c979c2dd38
cp-tree.h (DECL_HIDDEN_P): New.

gcc/cp/
* cp-tree.h (DECL_HIDDEN_P): New.
* name-lookup.c (set_decl_context)
set_local_extern_decl_linkage): New, broken out of ...
(pushdecl_maybe_friend_1): ... here.  Call them.

gcc/testsuite/
* g++.dg/parse/ctor9.C: Adjust expected error.
(--This line, and those below, will be ignored--

M    cp/name-lookup.c
M    cp/ChangeLog
M    cp/cp-tree.h
M    testsuite/ChangeLog
M    testsuite/g++.dg/parse/ctor9.C

From-SVN: r248373
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/ctor9.C