[clang] [Clang][diagnostics] Fix structured binding shadows template param loc (PR #129116)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 10:52:20 PST 2025


================
@@ -162,3 +162,10 @@ struct A {
 };
 A<0>::B a;
 }
+
+template <typename T> void shadow() {  // expected-note{{template parameter is declared here}}
----------------
erichkeane wrote:

Just a call to this function, so: `shadow<int>()` call. If you change it to return `int`, you can do: `auto Use = shadow<int>()` below this to instantiate it.

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


More information about the cfe-commits mailing list