name-lookup.c (find_namespace_binding): New.
authorNathan Sidwell <nathan@acm.org>
Tue, 23 May 2017 19:37:03 +0000 (19:37 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 23 May 2017 19:37:03 +0000 (19:37 +0000)
commitaa7bda5f27458fd958226050a221713dc6a39d26
tree5179a0bfc0b8a828f200bbbc2b4f660bdf0fa534
parent6131102ce3f1ac19a9c6637827b1f4dff9eea97b
name-lookup.c (find_namespace_binding): New.

* name-lookup.c (find_namespace_binding): New.
(pushdecl_maybe_friend_1): Use CP_DECL_CONTEXT.
(set_identifier_type_value_with_scope): Use
find_namespace_binding.
(find_binding, cp_binding_level_find_binding_for_name)
binding_for_name, namespace_binding_1): Delete.
(push_overloaded_decl_1): Use CP_DECL_CONTEXT.
(get_namespace_binding, set_namespace_binding)
finish_namespace_using_decl, unqualified_namespace_lookup_1,
qualified_lookup_using_namespace, lookup_type_scope_1,
lookup_name_innermost_nonclass_level_1): Use
find_namespace_binding.
((--This line, and those below, will be ignored--

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

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