[cfe-commits] r73268 - /cfe/trunk/lib/Sema/SemaTemplate.cpp
Anders Carlsson
andersca at mac.com
Fri Jun 12 16:13:22 PDT 2009
Author: andersca
Date: Fri Jun 12 18:13:22 2009
New Revision: 73268
URL: http://llvm.org/viewvc/llvm-project?rev=73268&view=rev
Log:
No need to mark the parameter as invalid, just ignore the default argument.
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=73268&r1=73267&r2=73268&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Fri Jun 12 18:13:22 2009
@@ -192,7 +192,6 @@
// template-parameter that is not a template parameter pack.
if (Parm->isParameterPack()) {
Diag(DefaultLoc, diag::err_template_param_pack_default_arg);
- Parm->setInvalidDecl();
return;
}
More information about the cfe-commits
mailing list