================
@@ -12166,6 +12174,15 @@ static void DiagnoseBadDeduction(Sema &S, NamedDecl 
*Found, Decl *Templated,
              diag::note_ovl_candidate_explicit_arg_mismatch_unnamed)
           << (index + 1);
     }
+
+    if (PartialDiagnosticAt *PDiag = DeductionFailure.getSFINAEDiagnostic()) {
+      unsigned DiagID =
----------------
mizvekov wrote:

This is obviously a step in the right direction, but bear in mind that this is 
still limited to a single error, and in some cases it can be hard to understand 
that error without the notes which follow it.

An alternative here, instead of degrading the level of diagnostic, would be to 
come up with a way to establish a nesting of diagnostics, beyond what we do 
implicitly, with notes always attached to the previous non-note diagnostic.

https://github.com/llvm/llvm-project/pull/139066
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to