]> granicus.if.org Git - clang/commitdiff
No need to mark the parameter as invalid, just ignore the default argument.
authorAnders Carlsson <andersca@mac.com>
Fri, 12 Jun 2009 23:13:22 +0000 (23:13 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 12 Jun 2009 23:13:22 +0000 (23:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73268 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplate.cpp

index 00d3e54565e266951c26bd919ccf8d2cce56702e..e1b2084469b74491c4d488976b489e2437d24b6e 100644 (file)
@@ -192,7 +192,6 @@ void Sema::ActOnTypeParameterDefault(DeclPtrTy TypeParam,
   // template-parameter that is not a template parameter pack.  
   if (Parm->isParameterPack()) {
     Diag(DefaultLoc, diag::err_template_param_pack_default_arg);
-    Parm->setInvalidDecl();
     return;
   }