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 | b49e41548d2392f1ce5488264a98685d98f90384 (patch) | |
tree | b7915e468e581fed2f88786429c48af6004c972b | |
parent | 1ed64765624d6f5226dd213e220e038b459972d1 (diff) |
Update C++ [temp.param]p11 citation to reflect the changes in C++0x. No functionality change
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122878 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 4ac8a6c21c..ff0fe9d6b6 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/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); |