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

Matheus Izvekov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 6 17:07:18 PST 2025


================
@@ -637,6 +641,8 @@ namespace cwg431 { // cwg431: 2.8
 
 namespace cwg432 { // cwg432: 3.0
   template<typename T> struct A {};
+  // expected-note at -1    {{template parameter is declared here}}
+  // since-cxx11-note at -2 {{template parameter is declared here}}
----------------
mizvekov wrote:

It's emitted once each by both errors in this section.

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


More information about the llvm-branch-commits mailing list