On 1/2/20 4:23 AM, Paolo Carlini wrote:
@@ -19320,8 +19320,8 @@ tsubst_copy_and_build (tree t,
tree op1 = tsubst (TREE_OPERAND (t, 1), args, complain, in_decl);
        tree op2 = RECUR (TREE_OPERAND (t, 2));
-       ret = build_new (&placement_vec, op1, op2, &init_vec,
-                        NEW_EXPR_USE_GLOBAL (t),
+       ret = build_new (input_location, &placement_vec, op1, op2,

Hmm, using input_location bothers me even though it does have the right value in this function. Let's use a local variable instead; maybe change the existing loc variable to save_loc and use the name loc for the location we want to use.

Jason

Reply via email to