diff options
author | John McCall <rjmccall@apple.com> | 2009-08-31 22:39:49 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-08-31 22:39:49 +0000 |
commit | ab88d97734f1260402a0c6a8f6b77bed7ed4e295 (patch) | |
tree | 5bac47b0d4ae5069f76775dd1cad78705add69c0 /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 49a8b984474f7f36c53cbd11bb7db6043e9ef1de (diff) |
Fix bug 4784 and allow friend declarations to properly extend
existing declaration chains.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index aa116b225d..c5b2894c49 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -498,7 +498,7 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(FunctionDecl *D) { bool WasDeclared = (FOK == Decl::FOK_Declared); Function->setObjectOfFriendDecl(WasDeclared); if (!Owner->isDependentContext()) - DC->makeDeclVisibleInContext(Function); + DC->makeDeclVisibleInContext(Function, /* Recoverable = */ false); Function->setInstantiationOfMemberFunction(D); } |