Revert "When performing a substitution into a dependent alias template, mark the"

This change depends on reverted change c7fbe2191b.

This reverts commit c851d6cf4a.
This commit is contained in:
Richard Smith 2020-06-17 16:07:58 -07:00
parent 55b6f68f4b
commit 973cfa9ef5
1 changed files with 3 additions and 2 deletions

View File

@ -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);