forked from OSchip/llvm-project
Update C++ [temp.param]p11 citation to reflect the changes in C++0x. No functionality change
llvm-svn: 122878
This commit is contained in:
parent
0018cdc105
commit
7dba51f8f8
|
@ -1299,9 +1299,10 @@ bool Sema::CheckTemplateParameterList(TemplateParameterList *NewParams,
|
|||
Invalid = true;
|
||||
} else if (MissingDefaultArg) {
|
||||
// C++ [temp.param]p11:
|
||||
// If a template-parameter has a default template-argument,
|
||||
// all subsequent template-parameters shall have a default
|
||||
// template-argument supplied.
|
||||
// If a template-parameter of a class template has a default
|
||||
// template-argument, each subsequent template- parameter shall either
|
||||
// have a default template-argument supplied or be a template parameter
|
||||
// pack.
|
||||
Diag((*NewParam)->getLocation(),
|
||||
diag::err_template_param_default_arg_missing);
|
||||
Diag(PreviousDefaultArgLoc, diag::note_template_param_prev_default_arg);
|
||||
|
|
Loading…
Reference in New Issue