On 6/25/25 1:28 PM, Marek Polacek wrote:
@@ -24604,7 +24604,7 @@ resolve_nondeduced_context (tree orig_expr, 
tsubst_flags_t complain)
        }
        if (good == 1)
        {
-         mark_used (goodfn);
+         mark_used (goodfn, complain);

Actually, if we're going to pass complain, we should also check the return value; the usual pattern is

          if (!mark_used (fn, complain) && !(complain & tf_error))
            return error_mark_node;

Jason

Reply via email to