aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-27 17:30:49 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-27 17:30:49 +0000
commitd0c873799614d32c9c11280878ac1a856f92f707 (patch)
treecdda09b65919606656f26bdc122b3f61dcc2eb45 /lib/Sema/SemaTemplate.cpp
parent8dbc3c64965f99e48830885835b7d2fc26ec3cf5 (diff)
Add some more tests for instantiation of declaration references. Also,
improve some error recovery with explicit template instantiation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index c533789458..97eca48b9f 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -2369,6 +2369,9 @@ Sema::ActOnExplicitInstantiation(Scope *S, SourceLocation TemplateLoc,
return true;
}
+ if (Tag->isInvalidDecl())
+ return true;
+
CXXRecordDecl *Record = cast<CXXRecordDecl>(Tag);
CXXRecordDecl *Pattern = Record->getInstantiatedFromMemberClass();
if (!Pattern) {