@@ -5358,19 +5358,14 @@ def err_template_linkage : Error<"templates must have C++ linkage">;
5358
5358
def err_template_typedef : Error<"a typedef cannot be a template">;
5359
5359
def err_template_unnamed_class : Error<
5360
5360
"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">;
5367
5364
def note_template_prev_declaration : Note<
5368
5365
"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">;
5374
5369
5375
5370
def err_invalid_decl_specifier_in_nontype_parm : Error<
5376
5371
"invalid declaration specifier in template non-type parameter">;
@@ -5379,8 +5374,6 @@ def err_template_nontype_parm_different_type : Error<
5379
5374
"template non-type parameter has a different type %0 in template "
5380
5375
"%select{|template parameter }1redeclaration">;
5381
5376
5382
- def note_template_nontype_parm_different_type : Note<
5383
- "template non-type parameter has a different type %0 in template argument">;
5384
5377
def note_template_nontype_parm_prev_declaration : Note<
5385
5378
"previous non-type template parameter with type %0 is here">;
5386
5379
def err_template_nontype_parm_bad_type : Error<
@@ -5454,10 +5447,17 @@ def err_template_missing_args : Error<
5454
5447
"%select{class template|function template|variable template|alias template|"
5455
5448
"template template parameter|concept|template}0 %1 requires template "
5456
5449
"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">;
5461
5461
def note_template_decl_here : Note<"template is declared here">;
5462
5462
def note_template_decl_external : Note<
5463
5463
"template declaration from hidden source: %0">;
@@ -5500,12 +5500,9 @@ def err_template_arg_not_valid_template
5500
5500
def note_template_arg_refers_to_template_here
5501
5501
: Note<"template argument refers to a %select{function template|class "
5502
5502
"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">;
5509
5506
def err_non_deduced_mismatch : Error<
5510
5507
"could not match %diff{$ against $|types}0,1">;
5511
5508
def err_inconsistent_deduction : Error<
@@ -5770,8 +5767,10 @@ def err_template_recursion_depth_exceeded : Error<
5770
5767
def err_constraint_depends_on_self
5771
5768
: Error<"satisfaction of constraint %0 depends on itself">,
5772
5769
NoSFINAE;
5773
- def note_template_recursion_depth : Note<
5774
- "use -ftemplate-depth=N to increase recursive template instantiation depth">;
5770
+ def note_template_recursion_depth
5771
+ : Note<"use -ftemplate-depth=N to increase recursive template "
5772
+ "instantiation depth">,
5773
+ NoSFINAE;
5775
5774
5776
5775
def err_template_instantiate_within_definition : Error<
5777
5776
"%select{implicit|explicit}0 instantiation of template %1 within its"
@@ -6050,14 +6049,11 @@ def err_template_param_pack_default_arg : Error<
6050
6049
def err_template_param_pack_must_be_last_template_parameter : Error<
6051
6050
"template parameter pack must be the last template parameter">;
6052
6051
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">;
6052
+ def err_template_parameter_pack_non_pack
6053
+ : Error<"%select{template type|non-type template|template template}0 "
6054
+ "parameter"
6055
+ "%select{| pack}1 conflicts with previous %select{template type|"
6056
+ "non-type template|template template}0 parameter%select{ pack|}1">;
6061
6057
def note_template_parameter_pack_here : Note<
6062
6058
"previous %select{template type|non-type template|template template}0 "
6063
6059
"parameter%select{| pack}1 declared here">;
0 commit comments