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

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 20 03:20:07 PST 2025


================
@@ -5294,10 +5294,14 @@ def err_template_missing_args : Error<
   "%select{class template|function template|variable template|alias template|"
   "template template parameter|concept|template}0 %1 requires template "
   "arguments">;
-def err_template_arg_list_different_arity : Error<
-  "%select{too few|too many}0 template arguments for "
+def err_template_param_missing_arg : Error<
+  "missing template argument for template parameter">;
+def err_template_template_param_missing_param : Error<
+  "missing template parameter to bind to template template parameter">;
----------------
cor3ntin wrote:

The formulation of this is a bit weird.
Maybe: "template template argument 'foo' incompatible with 'bar': template parameter list arity mismatch"

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


More information about the llvm-branch-commits mailing list