[C++ PATCH] hash-table for extern-c fns.
authorNathan Sidwell <nathan@acm.org>
Tue, 10 Oct 2017 20:50:26 +0000 (20:50 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 10 Oct 2017 20:50:26 +0000 (20:50 +0000)
commit7cd6ea64f8b4abb51debc41cba2558fbda814a7f
treec15f011f48311e5e1b7d7bae22def9a7d3cb8785
parent507ea98d58f471e00a717bc5e21ed8bdd240628b
[C++ PATCH] hash-table for extern-c fns.

https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00614.html
* name-lookup.c (extern_c_fns): Rename to ...
(extern_c_decls): ... here.
(check_extern_c_conflict, extern_c_linkage_bindings): Update.
(do_pushdecl): Check extern-c fns and vars.

* g++.dg/lookup/extern-c-redecl6.C: New.
* g++.dg/lookup/extern-c-hidden.C: Adjust diagnostics.
* g++.dg/lookup/extern-c-redecl.C: Likewise.
* g++.old-deja/g++.other/using9.C: Likewise.

From-SVN: r253622
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/extern-c-hidden.C
gcc/testsuite/g++.dg/lookup/extern-c-redecl.C
gcc/testsuite/g++.dg/lookup/extern-c-redecl6.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/using9.C