diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-15 16:51:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-15 16:51:42 +0000 |
commit | 9eea08ba72f8b1e7faf38e43376b9157fc4a2af2 (patch) | |
tree | c70d805a8c43ba0fd59498c30392a5bfc4cff431 /lib/Sema/SemaTemplateInstantiate.cpp | |
parent | 8c12506ea0e9d2500f59c9865ff05ebdbae77f49 (diff) |
Slightly improved template argument deduction for use in partial
ordering, along with another test case for partial ordering of partial
specializations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp index 1cae45e4f8..87216a072d 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -843,6 +843,9 @@ Sema::InstantiateClassTemplateSpecialization( return true; } + if (ClassTemplateSpec->isInvalidDecl()) + return true; + ClassTemplateDecl *Template = ClassTemplateSpec->getSpecializedTemplate(); CXXRecordDecl *Pattern = 0; |