@@ -5358,19 +5358,14 @@ def err_template_linkage : Error<"templates must have C++ linkage">;
53585358def err_template_typedef : Error<"a typedef cannot be a template">;
53595359def err_template_unnamed_class : Error<
53605360 "cannot declare a class template with no name">;
5361- def err_template_param_list_different_arity : Error<
5362- "%select{too few|too many}0 template parameters in template "
5363- "%select{|template parameter }1redeclaration">;
5364- def note_template_param_list_different_arity : Note<
5365- "%select{too few|too many}0 template parameters in template template "
5366- "argument">;
5361+ def err_template_param_list_different_arity
5362+ : Error<"%select{too few|too many}0 template parameters in template "
5363+ "%select{|template parameter }1redeclaration">;
53675364def note_template_prev_declaration : Note<
53685365 "previous template %select{declaration|template parameter}0 is here">;
5369- def err_template_param_different_kind : Error<
5370- "template parameter has a different kind in template "
5371- "%select{|template parameter }0redeclaration">;
5372- def note_template_param_different_kind : Note<
5373- "template parameter has a different kind in template argument">;
5366+ def err_template_param_different_kind
5367+ : Error<"template parameter has a different kind in template "
5368+ "%select{|template parameter }0redeclaration">;
53745369
53755370def err_invalid_decl_specifier_in_nontype_parm : Error<
53765371 "invalid declaration specifier in template non-type parameter">;
@@ -5379,8 +5374,6 @@ def err_template_nontype_parm_different_type : Error<
53795374 "template non-type parameter has a different type %0 in template "
53805375 "%select{|template parameter }1redeclaration">;
53815376
5382- def note_template_nontype_parm_different_type : Note<
5383- "template non-type parameter has a different type %0 in template argument">;
53845377def note_template_nontype_parm_prev_declaration : Note<
53855378 "previous non-type template parameter with type %0 is here">;
53865379def err_template_nontype_parm_bad_type : Error<
@@ -5454,10 +5447,17 @@ def err_template_missing_args : Error<
54545447 "%select{class template|function template|variable template|alias template|"
54555448 "template template parameter|concept|template}0 %1 requires template "
54565449 "arguments">;
5457- def err_template_arg_list_different_arity : Error<
5458- "%select{too few|too many}0 template arguments for "
5459- "%select{class template|function template|variable template|alias template|"
5460- "template template parameter|concept|template}1 %2">;
5450+ def err_template_param_missing_arg
5451+ : Error<"missing template argument for template parameter">;
5452+ def err_template_template_param_missing_param
5453+ : Error<"no template parameter in this template template parameter "
5454+ "corresponds to non-defaulted template parameter of argument "
5455+ "template">;
5456+ def err_template_too_many_args
5457+ : Error<"too many template arguments for "
5458+ "%select{class template|function template|variable template|alias "
5459+ "template|"
5460+ "template template parameter|concept|template}0 %1">;
54615461def note_template_decl_here : Note<"template is declared here">;
54625462def note_template_decl_external : Note<
54635463 "template declaration from hidden source: %0">;
@@ -5500,12 +5500,9 @@ def err_template_arg_not_valid_template
55005500def note_template_arg_refers_to_template_here
55015501 : Note<"template argument refers to a %select{function template|class "
55025502 "template|variable template|concept}0 %1, here">;
5503- def err_template_arg_template_params_mismatch : Error<
5504- "template template argument has different template parameters than its "
5505- "corresponding template template parameter">;
5506- def note_template_arg_template_params_mismatch : Note<
5507- "template template argument has different template parameters than its "
5508- "corresponding template template parameter">;
5503+ def note_template_arg_template_params_mismatch
5504+ : Note<"template template argument is incompatible with its "
5505+ "corresponding template template parameter">;
55095506def err_non_deduced_mismatch : Error<
55105507 "could not match %diff{$ against $|types}0,1">;
55115508def err_inconsistent_deduction : Error<
@@ -6050,14 +6047,11 @@ def err_template_param_pack_default_arg : Error<
60506047def err_template_param_pack_must_be_last_template_parameter : Error<
60516048 "template parameter pack must be the last template parameter">;
60526049
6053- def err_template_parameter_pack_non_pack : Error<
6054- "%select{template type|non-type template|template template}0 parameter"
6055- "%select{| pack}1 conflicts with previous %select{template type|"
6056- "non-type template|template template}0 parameter%select{ pack|}1">;
6057- def note_template_parameter_pack_non_pack : Note<
6058- "%select{template type|non-type template|template template}0 parameter"
6059- "%select{| pack}1 does not match %select{template type|non-type template"
6060- "|template template}0 parameter%select{ pack|}1 in template argument">;
6050+ def err_template_parameter_pack_non_pack
6051+ : Error<"%select{template type|non-type template|template template}0 "
6052+ "parameter"
6053+ "%select{| pack}1 conflicts with previous %select{template type|"
6054+ "non-type template|template template}0 parameter%select{ pack|}1">;
60616055def note_template_parameter_pack_here : Note<
60626056 "previous %select{template type|non-type template|template template}0 "
60636057 "parameter%select{| pack}1 declared here">;
0 commit comments