diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2013-09-27 22:14:40 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2013-09-27 22:14:40 +0000 |
| commit | 2acfb22d233a7cd467357f5e022fb0bcb612e44c (patch) | |
| tree | 95fae8cfb671d3fecfdb461fae2ef92b3cfab7b7 /clang/lib | |
| parent | 7857d489a997a36bd49e5032cdaeabb7114e8627 (diff) | |
| download | bcm5719-llvm-2acfb22d233a7cd467357f5e022fb0bcb612e44c.tar.gz bcm5719-llvm-2acfb22d233a7cd467357f5e022fb0bcb612e44c.zip | |
Fix a bug where we failed to diagnose class template specialization
uses.
This fixes one of the two remaining failures to implement [[deprecated]]
as specified for C++14.
llvm-svn: 191572
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 065f75ea8a6..79f6fb8f34a 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -2092,6 +2092,9 @@ QualType Sema::CheckTemplateIdType(TemplateName Name, Decl->setLexicalDeclContext(ClassTemplate->getLexicalDeclContext()); } + // Diagnose uses of this specialization. + (void)DiagnoseUseOfDecl(Decl, TemplateLoc); + CanonType = Context.getTypeDeclType(Decl); assert(isa<RecordType>(CanonType) && "type of non-dependent specialization is not a RecordType"); |

