[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 14 01:54:47 PDT 2025
================
@@ -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 =
----------------
cor3ntin wrote:
I think @mizvekov Is saying that if we could "attach" a diagnostics to another, all nested diagnostics would automatically could become notes.
But this is a fairly involved project...
https://github.com/llvm/llvm-project/pull/139066
More information about the cfe-commits
mailing list