[clang] Improve the -Wundefined-func-template diagnostic note for invisible template functions (PR #129031)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 11:16:23 PDT 2025


================
@@ -759,13 +759,11 @@ Sema::BuildDependentDeclRefExpr(const CXXScopeSpec &SS,
       TemplateArgs);
 }
 
-bool Sema::DiagnoseUninstantiableTemplate(SourceLocation PointOfInstantiation,
-                                          NamedDecl *Instantiation,
-                                          bool InstantiatedFromMember,
-                                          const NamedDecl *Pattern,
-                                          const NamedDecl *PatternDef,
-                                          TemplateSpecializationKind TSK,
-                                          bool Complain /*= true*/) {
+bool Sema::DiagnoseUninstantiableTemplate(
+    SourceLocation PointOfInstantiation, NamedDecl *Instantiation,
+    bool InstantiatedFromMember, const NamedDecl *Pattern,
+    const NamedDecl *PatternDef, TemplateSpecializationKind TSK,
+    bool Complain /*= true*/, bool *Unreachable) {
----------------
AaronBallman wrote:

Yeah, might as well drop it here otherwise it is a potential to get out of sync in the future.

https://github.com/llvm/llvm-project/pull/129031


More information about the cfe-commits mailing list