From: Anders Carlsson Date: Fri, 12 Jun 2009 23:13:22 +0000 (+0000) Subject: No need to mark the parameter as invalid, just ignore the default argument. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94c1cdcb0a23fee5845d9ecf0c964013f600e450;p=clang No need to mark the parameter as invalid, just ignore the default argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73268 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 00d3e54565..e1b2084469 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -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; }