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

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 08:45:23 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}}
----------------
cor3ntin wrote:

L70. you want me to use a label i guess?

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


More information about the cfe-commits mailing list