aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-03-24 01:19:16 +0000
committerAnders Carlsson <andersca@mac.com>2009-03-24 01:19:16 +0000
commit8211effbd3abc5948a5d6924c87e72323016a376 (patch)
treee7a78360e3482db52dc96d9e4af335b59e24df4a /lib/Sema/SemaTemplateInstantiateDecl.cpp
parent42edd0d32a729d2735a6fb152ba6bf349bf0a169 (diff)
More work on diagnosing abstract classes. We can now handle cases like
class C { void g(C c); virtual void f() = 0; }; In this case, C is not known to be abstract when doing semantic analysis on g. This is done by recursively traversing the abstract class and checking the types of member functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp
index b7a8f7a515..685b9cfd5b 100644
--- a/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -357,7 +357,7 @@ TemplateDeclInstantiator::InstantiateFunctionType(FunctionDecl *D,
else if (SemaRef.RequireNonAbstractType(PInst->getLocation(),
PInst->getType(),
diag::err_abstract_type_in_decl,
- 1 /* parameter type */))
+ Sema::AbstractParamType))
PInst->setInvalidDecl();
Params.push_back(PInst);