[clang] [clang] print correct context for diagnostics suppressed by deduction (PR #125453)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 3 03:21:14 PST 2025


================
@@ -1058,8 +1061,10 @@ namespace cwg62 { // cwg62: 2.9
     // cxx98-error at -1 {{template argument uses local type }}
     get<NoLinkage>();
     // cxx98-error at -1 {{template argument uses local type }}
+    // cxx98-note at -2 {{while substituting explicitly-specified template arguments}}
     get<const NoLinkage>();
     // cxx98-error at -1 {{template argument uses local type }}
+    // cxx98-note at -2 {{while substituting explicitly-specified template arguments}}
----------------
Endilll wrote:

```suggestion
    //   cxx98-note at -2 {{while substituting explicitly-specified template arguments}}
```

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


More information about the cfe-commits mailing list