summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-09-18 23:09:24 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-09-18 23:09:24 +0000
commit7506e6bf2531208dda835fef73b8605654454fa9 (patch)
tree62436beab31241c61ce64855a1f1c729e886e81f /clang/lib/Parse/ParseDecl.cpp
parentd913c86b939f04652d10bcd8877ec00670677836 (diff)
downloadbcm5719-llvm-7506e6bf2531208dda835fef73b8605654454fa9.tar.gz
bcm5719-llvm-7506e6bf2531208dda835fef73b8605654454fa9.zip
Remove a bogus diagnostic preventing static data member templates from being
defined with no initializer. llvm-svn: 190970
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 915fb607a68..a1a796de414 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1804,11 +1804,6 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(Declarator &D,
ThisDecl = Actions.ActOnTemplateDeclarator(getCurScope(),
*TemplateInfo.TemplateParams,
D);
- if (Tok.is(tok::semi) &&
- Actions.HandleVariableRedeclaration(ThisDecl, D.getCXXScopeSpec())) {
- SkipUntil(tok::semi, true, true);
- return 0;
- }
if (VarTemplateDecl *VT = dyn_cast_or_null<VarTemplateDecl>(ThisDecl))
// Re-direct this decl to refer to the templated decl so that we can
// initialize it.
OpenPOWER on IntegriCloud