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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 08:50:36 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:

Ahhh, it was just out of sight. Yeah might as well switch to a bookmark instead. I don't feel that strongly though.

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


More information about the cfe-commits mailing list