diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-25 06:24:24 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-25 06:24:24 +0000 |
commit | f5cd5cc9a7ec114ef1a4c08491a37d2327697c4a (patch) | |
tree | 8f228364ec036396e98c31264afc3b7cec672176 /include | |
parent | 9875962295022661213153127eae961250fefd55 (diff) | |
download | clang-f5cd5cc9a7ec114ef1a4c08491a37d2327697c4a.tar.gz clang-f5cd5cc9a7ec114ef1a4c08491a37d2327697c4a.tar.bz2 clang-f5cd5cc9a7ec114ef1a4c08491a37d2327697c4a.tar.xz |
Fix a regression from r151117: ADL requires that we attempt to complete any
associated classes, since it can find friend functions declared within them,
but overload resolution does not otherwise require argument types to be
complete.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Sema/Sema.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 875b021f96..a3a5d4ea03 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -1568,7 +1568,7 @@ public: Expr **Args, unsigned NumArgs, OverloadCandidateSet& CandidateSet); void AddArgumentDependentLookupCandidates(DeclarationName Name, - bool Operator, + bool Operator, SourceLocation Loc, Expr **Args, unsigned NumArgs, TemplateArgumentListInfo *ExplicitTemplateArgs, OverloadCandidateSet& CandidateSet, @@ -1814,6 +1814,7 @@ public: CXXDestructorDecl *LookupDestructor(CXXRecordDecl *Class); void ArgumentDependentLookup(DeclarationName Name, bool Operator, + SourceLocation Loc, Expr **Args, unsigned NumArgs, ADLResult &Functions, bool StdNamespaceIsAssociated = false); |