+2018-01-17 Nathan Sidwell <nathan@acm.org>
+
+ PR c++/83287
+ * init.c (build_raw_new_expr): Scan list for lookups to keep.
+
2018-01-17 David Malcolm <dmalcolm@redhat.com>
PR c++/83814
else if (init->is_empty ())
init_list = void_node;
else
- init_list = build_tree_list_vec (init);
+ {
+ init_list = build_tree_list_vec (init);
+ for (tree v = init_list; v; v = TREE_CHAIN (v))
+ if (TREE_CODE (TREE_VALUE (v)) == OVERLOAD)
+ lookup_keep (TREE_VALUE (v), true);
+ }
new_expr = build4 (NEW_EXPR, build_pointer_type (type),
build_tree_list_vec (placement), type, nelts,