[C++ PATCH] Merge some using-decl handling
authorNathan Sidwell <nathan@gcc.gnu.org>
Tue, 12 Nov 2019 21:21:13 +0000 (21:21 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 12 Nov 2019 21:21:13 +0000 (21:21 +0000)
commit5c44cef5f5610e48cce17e8d085636c18f308363
treec4bf6c5ddc18d6176e8364d4344586e831cd3a7e
parent3c72b04bf1b21ef6256844d06fd7e7b2db318eab
[C++ PATCH] Merge some using-decl handling

https://gcc.gnu.org/ml/gcc-patches/2019-11/msg00971.html
gcc/cp/
* name-lookup.c (lookup_using_decl): New function, merged from ...
(do_class_using_decl): ... here.  Call it.  And ...
(finish_nonmember_using_decl): ... here.  Call it.

gcc/testsuite/
* g++.dg/cpp0x/using-enum-2.C: Adjust expected error text.
* g++.dg/cpp0x/using-enum-3.C: Likewise.
* g++.dg/lookup/using4.C: Likewise.
* g++.dg/lookup/using7.C: Likewise.
* g++.dg/template/using12.C: Likewise.
* g++.dg/template/using18.C: Likewise.
* g++.dg/template/using22.C: Likewise.

From-SVN: r278106
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/using-enum-2.C
gcc/testsuite/g++.dg/cpp0x/using-enum-3.C
gcc/testsuite/g++.dg/lookup/using4.C
gcc/testsuite/g++.dg/lookup/using7.C
gcc/testsuite/g++.dg/template/using12.C
gcc/testsuite/g++.dg/template/using18.C
gcc/testsuite/g++.dg/template/using22.C