aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-05-14 19:17:07 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-05-14 19:17:07 +0000
commite1e96a6201168c232a06ec81685f948e05fddd39 (patch)
tree981bf9fa53571d189d20a1274b0ec7db9d04ef8c /lib/Sema/SemaTemplate.cpp
parent509f048825d309ca84db136abee32da0c6acffc0 (diff)
Revert 131347. It asserts if the specialization in within a class template:
template<class U> struct X1 { template<class T> void f(T*); template<> void f(int*) { } }; Won't be so simple. I need to think more about it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index 9b14f63301..c31ed01737 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -4401,12 +4401,9 @@ static bool CheckTemplateSpecializationScope(Sema &S,
}
if (S.CurContext->isRecord() && !IsPartialSpecialization) {
- if (S.getLangOptions().Microsoft)
- S.Diag(Loc, diag::war_template_spec_decl_class_scope) << Specialized;
- else {
- S.Diag(Loc, diag::err_template_spec_decl_class_scope) << Specialized;
- return true;
- }
+ S.Diag(Loc, diag::err_template_spec_decl_class_scope)
+ << Specialized;
+ return true;
}
// C++ [temp.class.spec]p6: