]> granicus.if.org Git - clang/commitdiff
Update C++ [temp.param]p11 citation to reflect the changes in C++0x. No functionality...
authorDouglas Gregor <dgregor@apple.com>
Wed, 5 Jan 2011 16:21:17 +0000 (16:21 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 5 Jan 2011 16:21:17 +0000 (16:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122878 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplate.cpp

index 4ac8a6c21c3d3a4f702a38eb9c1dcdf1ff3e90d9..ff0fe9d6b6bd70ad80b91fd49b175d4a89238953 100644 (file)
@@ -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);