[llvm-branch-commits] [clang] [clang] Implement instantiation context note for checking template parameters (PR #126088)

Vlad Serebrennikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 6 09:49:31 PST 2025


================
@@ -318,6 +318,7 @@ namespace cwg319 { // cwg319: no
   pa parr; // ok, type has linkage despite using 'n1'
 
   template<typename> struct X {};
+  // cxx98-note at -1 2{{template parameter is declared here}}
----------------
Endilll wrote:

Those two notes should go to their respective errors

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


More information about the llvm-branch-commits mailing list