diff options
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index eb1abafb7d0..519694aea84 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -4347,8 +4347,6 @@ Sema::ActOnFriendFunctionDecl(Scope *S, Declarator &D, bool IsDefinition, MultiTemplateParamsArg TemplateParams) { - // FIXME: do something with template parameters - const DeclSpec &DS = D.getDeclSpec(); assert(DS.isFriendSpecified()); @@ -4404,6 +4402,7 @@ Sema::ActOnFriendFunctionDecl(Scope *S, // Recover from invalid scope qualifiers as if they just weren't there. NamedDecl *PrevDecl = 0; if (!ScopeQual.isInvalid() && ScopeQual.isSet()) { + // FIXME: RequireCompleteDeclContext DC = computeDeclContext(ScopeQual); // FIXME: handle dependent contexts @@ -4479,7 +4478,7 @@ Sema::ActOnFriendFunctionDecl(Scope *S, bool Redeclaration = false; NamedDecl *ND = ActOnFunctionDeclarator(S, D, DC, T, DInfo, PrevDecl, - MultiTemplateParamsArg(*this), + move(TemplateParams), IsDefinition, Redeclaration); if (!ND) return DeclPtrTy(); |