if (args == error_mark_node)
return args;
+ /* A global operator new must be looked up only at global scope. */
+ push_to_top_level();
fns = lookup_function_nonclass (fnname, args);
+ pop_from_top_level();
/* Figure out what function is being called. */
cand = perform_overload_resolution (fns, args, &candidates, &any_viable_p);