[clang] [clang] require template arg list after template kw (PR #80801)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 04:58:56 PST 2024


================
@@ -868,6 +868,9 @@ def err_requires_expr_in_simple_requirement : Error<
   "requires expression in requirement body; did "
   "you intend to place it in a nested requirement? (add another 'requires' "
   "before the expression)">;
+def err_missing_template_arg_list_after_template_kw : Error<
+  "a template argument list is expected after a name prefixed by the template "
+  "keyword">;
----------------
cor3ntin wrote:

This should be a pedantic warning (maybe defaulting to an error)
Otherwise we might break existing (non conforming) code

https://github.com/search?q=%2Fs%5C.template+%5Ba-zA_Z_%5D%2B%5B%28%5D%2F+language%3AC%2B%2B&type=code

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


More information about the cfe-commits mailing list