On 7/31/25 7:12 AM, Marek Polacek wrote:
On Thu, Jul 31, 2025 at 11:43:17AM +0200, Richard Biener wrote:
On Sat, Jun 28, 2025 at 12:31 AM Jason Merrill <ja...@redhat.com> wrote:

On 6/26/25 4:12 PM, Marek Polacek wrote:
On Wed, Jun 25, 2025 at 03:13:25PM -0400, Jason Merrill wrote:
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;

OK, done here:

Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk?

OK.

I have bootstrapped and tested this on the 15 branch, OK there as well?

Yes.

Jason

Reply via email to