[clang] [Clang] Implement P2308R1 - Template Parameter Initialization. (PR #73103)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 08:24:55 PST 2023


================
@@ -62,7 +62,7 @@ namespace ClassNTTP {
   template<A a> constexpr int f() { return a.y; }
   static_assert(f<A{1,2}>() == 2);
 
-  template<A a> int id;
+  template<A a> int id; // expected-note {{passing argument to parameter 'a' here}}
----------------
AaronBallman wrote:

What diagnostic is this note associated with?

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


More information about the cfe-commits mailing list