aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-06-12 23:13:22 +0000
committerAnders Carlsson <andersca@mac.com>2009-06-12 23:13:22 +0000
commit94c1cdcb0a23fee5845d9ecf0c964013f600e450 (patch)
tree12cae4c9baf5e80b29e075d523ae7270fb63bd21 /lib/Sema/SemaTemplate.cpp
parentce5635a1008b3aedaecb1a3b29bb77e1b71080d1 (diff)
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
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp1
1 files changed, 0 insertions, 1 deletions
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;
}