cp-tree.h (LOOKUP_SEEN_P, [...]): New.
authorNathan Sidwell <nathan@acm.org>
Thu, 25 May 2017 12:51:30 +0000 (12:51 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 25 May 2017 12:51:30 +0000 (12:51 +0000)
commitf35a733d3718e953065fa366bfcef1d95dfb2a10
treee620817e8d290cda07164b13a24b2371effe7961
parent8442a5fbf0a061a9cec06118218218c12e499095
cp-tree.h (LOOKUP_SEEN_P, [...]): New.

gcc/cp/
* cp-tree.h (LOOKUP_SEEN_P, LOOKUP_FOUND_P): New.
* name-lookup.h (lookup_arg_dependent): Return plain tree.
* name-lookup.c (arg_lookup, arg_assoc, arg_assoc_args)
arg_assoc_args_vec, arg_assoc_type, add_function,
arg_assoc_namespace, arg_assoc_class_only, arg_assoc_bases,
arg_assoc_class, arg_assoc_template_arg, arg_assoc,
lookup_arg_dependent_1): Delete.
(name_lookup): New lookup object.
(name_lookup::preserve_state, name_lookup::restore_state)
name_lookup::mark_seen, name_lookup::find_and_mark,
name_lookup::add_fns, name_lookup::adl_namespace_only,
name_lookup::adl_namespace, name_lookup::adl_class_only,
name_lookup::adl_bases, name_lookup::adl_class,
name_lookup::adl_expr, name_lookup::adl_type,
name_lookup::adl_template_arg, name_lookup::search_adl): New.
(lookup_arg_dependent): Return a plain tree.  Adjust.
(is_associated_namespace): Move later.
gcc/cp/
* g++.dg/lookup/koenig14.C: New.

From-SVN: r248457
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/koenig14.C [new file with mode: 0644]