forked from OSchip/llvm-project
Revert "When performing a substitution into a dependent alias template, mark the"
This change depends on reverted changec7fbe2191b
. This reverts commitc851d6cf4a
.
This commit is contained in:
parent
55b6f68f4b
commit
973cfa9ef5
|
@ -3558,8 +3558,9 @@ QualType Sema::CheckTemplateIdType(TemplateName Name,
|
|||
// Only substitute for the innermost template argument list.
|
||||
MultiLevelTemplateArgumentList TemplateArgLists;
|
||||
TemplateArgLists.addOuterTemplateArguments(&StackTemplateArgs);
|
||||
TemplateArgLists.addOuterRetainedLevels(
|
||||
AliasTemplate->getTemplateParameters()->getDepth());
|
||||
unsigned Depth = AliasTemplate->getTemplateParameters()->getDepth();
|
||||
for (unsigned I = 0; I < Depth; ++I)
|
||||
TemplateArgLists.addOuterTemplateArguments(None);
|
||||
|
||||
LocalInstantiationScope Scope(*this);
|
||||
InstantiatingTemplate Inst(*this, TemplateLoc, Template);
|
||||
|
|
Loading…
Reference in New Issue