call.c (build_operator_new_call): Do namelookup and ADL here.
authorNathan Sidwell <nathan@acm.org>
Fri, 26 May 2017 16:34:40 +0000 (16:34 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 26 May 2017 16:34:40 +0000 (16:34 +0000)
commite1cad93084f9cd5bcdb3f3b0b6214605c8043871
tree143dc4fbc11d439ac1a7854bee45cf8542e9b7a6
parent32196b873a1ba319e9b3fc4cccb910d8cc4d6b31
call.c (build_operator_new_call): Do namelookup and ADL here.

gcc/cp/
* call.c (build_operator_new_call): Do namelookup and ADL here.
(build_new_op_1): Likewise.
* name-lookup.h (lookup_function_nonclass): Delete declaration.
(do_using_directive): Likewise.
* name-lookup.c (set_namespace_binding, push_local_binding): Don't
declare early.
(struct scope_binding): Delete.
(EMPTY_SCOPE_BINDING): Delete.
(set_decl_namespace): Use OVL_P.
(finish_local_using_decl): Lose unnecesary checks.
(lookup_function_nonclass): Delete.
(cp_emit_debug_info_for_using): Use MAYBE_BASELINK_P.

libcc1/
* libcp1plugin.cc (plugin_add_using_namespace): Call
finish_namespace_using_directive.

From-SVN: r248518
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
libcc1/ChangeLog
libcc1/libcp1plugin.cc