Reimplement qualified namespace lookup.
authorNathan Sidwell <nathan@acm.org>
Thu, 25 May 2017 15:12:38 +0000 (15:12 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 25 May 2017 15:12:38 +0000 (15:12 +0000)
commit9dda0acea2a779251fb020344554fcf4b9ac3534
tree0bf4ec4456ad95fc6c90b6b1fae098562162521a
parent47c05e71d79388ade0514bbf52096146f0b936f2
Reimplement qualified namespace lookup.

* name-lookup.c (name_lookup::flags): New member.  Adjust ctor.
(name_lookup::ambiguous, name_lookup::add_value)
name_lookup::add_type, name_lookup::process_binding): New.
(name_lookup::search_namespace_only)
name_lookup::search_namespace, name_lookup::search_usings): New.
(name_lookup::search_qualified): New.
(do_nonmember_using_decl, suggest_alternatives_for)
lookup_qualified_name): Adjust.
(tree_vec_contains): Delete.
(qualified_lookup_using_namespace): Rename to ...
(qualified_namespace_lookup): ... here.  Reimplement.
(((--This line, and those below, will be ignored--

M    cp/name-lookup.c
M    cp/ChangeLog

From-SVN: r248462
gcc/cp/ChangeLog
gcc/cp/name-lookup.c