From 3f0556d8fb5f792e19cc79055a19fc7a0830533a Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Fri, 3 Jun 2011 07:35:49 +0000 Subject: [PATCH] Correctly revert r131347: function explicit specialization at class scope. I'll try to implement this functionality again soon. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132536 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index d77bda7676..5de1838b9f 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -4587,7 +4587,7 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC, NewFD->setInvalidDecl(); } else if (isFunctionTemplateSpecialization) { if (CurContext->isDependentContext() && CurContext->isRecord() - && !isFriend && !getLangOptions().Microsoft) { + && !isFriend) { Diag(NewFD->getLocation(), diag::err_function_specialization_in_class) << NewFD->getDeclName(); NewFD->setInvalidDecl(); -- 2.50.1