if (Inst)
return TDK_InstantiationDepth;
- ContextRAII SavedContext(*this, Partial->getDeclContext());
+ ContextRAII SavedContext(*this, Partial);
// C++ [temp.deduct.type]p2:
// [...] or if any template argument remains neither deduced nor
if (Inst)
return TDK_InstantiationDepth;
- ContextRAII SavedContext(*this, FunctionTemplate->getDeclContext());
+ ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl());
if (CheckTemplateArgumentList(FunctionTemplate,
SourceLocation(),
if (Inst)
return TDK_InstantiationDepth;
- ContextRAII SavedContext(*this, FunctionTemplate->getDeclContext());
+ ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl());
// C++ [temp.deduct.type]p2:
// [...] or if any template argument remains neither deduced nor