diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-01-05 16:21:17 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-01-05 16:21:17 +0000 |
| commit | 7dba51f8f832ec71cd1dca1c5ac2fd9360819890 (patch) | |
| tree | c311e1dc280a5a673818bdf9a6c672a82f42a24f | |
| parent | 0018cdc1053e50a3c667d0962a20296e4b7f1e6e (diff) | |
| download | bcm5719-llvm-7dba51f8f832ec71cd1dca1c5ac2fd9360819890.tar.gz bcm5719-llvm-7dba51f8f832ec71cd1dca1c5ac2fd9360819890.zip | |
Update C++ [temp.param]p11 citation to reflect the changes in C++0x. No functionality change
llvm-svn: 122878
| -rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 4ac8a6c21c3..ff0fe9d6b6b 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -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); |

