We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dda28d commit efb41e6Copy full SHA for efb41e6
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -2003,7 +2003,7 @@ TemplateDeclInstantiator::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) {
2003
// Link the instantiation back to the pattern *unless* this is a
2004
// non-definition friend declaration.
2005
if (!InstTemplate->getInstantiatedFromMemberTemplate() &&
2006
- !(isFriend && !D->getTemplatedDecl()->isThisDeclarationADefinition()))
+ !(isFriend && !TemplatedDecl->isThisDeclarationADefinition()))
2007
InstTemplate->setInstantiatedFromMemberTemplate(D);
2008
2009
// Make declarations visible in the appropriate context.
0 commit comments