Reimplement unqualified namespace lookup.
authorNathan Sidwell <nathan@acm.org>
Thu, 25 May 2017 16:55:43 +0000 (16:55 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 25 May 2017 16:55:43 +0000 (16:55 +0000)
commit932f48ac85f5111b1f3666b2c15718db2d10bcbf
tree6c8b2293e19b89bf33b24a7836cdfa0180986c36
parenta10f9a2eaaeb9acb9ffa89fa12e248745f7fce86
Reimplement unqualified namespace lookup.

gcc/cp/
Reimplement unqualified namespace lookup.
* name-lookup.c (name_lookup::using_pair)
name_lookup::using_queue): New typedefs.
(name_lookup::queue_namespace, name_lookup::do_queue_usings,
name_lookup::queue_usings): New.
(name_lookup::search_unqualified): New.
(merge_functions, same_entity_p, ambiguous_decl)
unqualified_namespace_lookup_1, unqualified_namespace_lookup,
lookup_using_namespace): Delete.
(lookup_name_real_1): Adjust.

gcc/testsuite/
* g++.dg/lookup/using17.C: Adjust diagnostics.

From-SVN: r248465
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/using17.C