[cfe-commits] r132536 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Francois Pichet
pichet2000 at gmail.com
Fri Jun 3 00:35:49 PDT 2011
Author: fpichet
Date: Fri Jun 3 02:35:49 2011
New Revision: 132536
URL: http://llvm.org/viewvc/llvm-project?rev=132536&view=rev
Log:
Correctly revert r131347: function explicit specialization at class scope.
I'll try to implement this functionality again soon.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=132536&r1=132535&r2=132536&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Jun 3 02:35:49 2011
@@ -4587,7 +4587,7 @@
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();
More information about the cfe-commits
mailing list