forked from OSchip/llvm-project
Fixed lexical decl context of out of line class template instantiations.
llvm-svn: 163206
This commit is contained in:
parent
5f5973df08
commit
02b9553bdb
|
@ -2088,7 +2088,8 @@ QualType Sema::CheckTemplateIdType(TemplateName Name,
|
|||
Converted.data(),
|
||||
Converted.size(), 0);
|
||||
ClassTemplate->AddSpecialization(Decl, InsertPos);
|
||||
Decl->setLexicalDeclContext(CurContext);
|
||||
if (ClassTemplate->isOutOfLine())
|
||||
Decl->setLexicalDeclContext(ClassTemplate->getLexicalDeclContext());
|
||||
}
|
||||
|
||||
CanonType = Context.getTypeDeclType(Decl);
|
||||
|
|
Loading…
Reference in New Issue