[cfe-commits] r122878 - /cfe/trunk/lib/Sema/SemaTemplate.cpp

Douglas Gregor dgregor at apple.com
Wed Jan 5 08:21:17 PST 2011


Author: dgregor
Date: Wed Jan  5 10:21:17 2011
New Revision: 122878

URL: http://llvm.org/viewvc/llvm-project?rev=122878&view=rev
Log:
Update C++ [temp.param]p11 citation to reflect the changes in C++0x. No functionality change

Modified:
    cfe/trunk/lib/Sema/SemaTemplate.cpp

Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=122878&r1=122877&r2=122878&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Wed Jan  5 10:21:17 2011
@@ -1299,9 +1299,10 @@
       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);





More information about the cfe-commits mailing list