]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/name-lookup.c
[C++ PATCH] hash-table for extern-c fns.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2017 20:50:26 +0000 (20:50 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2017 20:50:26 +0000 (20:50 +0000)
commite48db2675c60078e48a15e103c56bf92c37fb24d
treec15f011f48311e5e1b7d7bae22def9a7d3cb8785
parented8e4f5423bd3256aedfffd67b72a4b5432bcc95
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253622 138bc75d-0d04-0410-961f-82ee72b054a4
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