summaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-26 16:34:40 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-26 16:34:40 +0000
commite1cad93084f9cd5bcdb3f3b0b6214605c8043871 (patch)
tree143dc4fbc11d439ac1a7854bee45cf8542e9b7a6 /libcc1
parent32196b873a1ba319e9b3fc4cccb910d8cc4d6b31 (diff)
downloadgcc-e1cad93084f9cd5bcdb3f3b0b6214605c8043871.tar.gz
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
Diffstat (limited to 'libcc1')
-rw-r--r--libcc1/ChangeLog5
-rw-r--r--libcc1/libcp1plugin.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog
index f22ea27c9c3..76b63883938 100644
--- a/libcc1/ChangeLog
+++ b/libcc1/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-26 Nathan Sidwell <nathan@acm.org>
+
+ * libcp1plugin.cc (plugin_add_using_namespace): Call
+ finish_namespace_using_directive.
+
2017-05-25 Nathan Sidwell <nathan@acm.org>
* libcp1plugin.cc (plugin_make_namespace_inline): Check and set
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc
index 43781adce54..877c2642c36 100644
--- a/libcc1/libcp1plugin.cc
+++ b/libcc1/libcp1plugin.cc
@@ -946,7 +946,7 @@ plugin_add_using_namespace (cc1_plugin::connection *,
gcc_assert (TREE_CODE (used_ns) == NAMESPACE_DECL);
- do_using_directive (used_ns);
+ finish_namespace_using_directive (used_ns, NULL_TREE);
return 1;
}