summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-12 08:07:23 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-12 08:07:23 +0000
commit8fcc516a5d5b2fec0023a9dced29285a38b95355 (patch)
treeb23ca737524fdd1cb440bac909b0a14d4cef6b5a /include
parentc6dbc3fa467e2355b678a6b717534928048efcb2 (diff)
downloadclang-8fcc516a5d5b2fec0023a9dced29285a38b95355.tar.gz
clang-8fcc516a5d5b2fec0023a9dced29285a38b95355.tar.bz2
clang-8fcc516a5d5b2fec0023a9dced29285a38b95355.tar.xz
When performing overload resolution, only compare the final conversion
sequences for two conversion functions when in fact we are in the text of initialization by a user-defined conversion sequences. Fixes PR8034. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Sema/Overload.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Sema/Overload.h b/include/clang/Sema/Overload.h
index 851d68ac4d..404d895756 100644
--- a/include/clang/Sema/Overload.h
+++ b/include/clang/Sema/Overload.h
@@ -630,7 +630,8 @@ namespace clang {
/// Find the best viable function on this overload set, if it exists.
OverloadingResult BestViableFunction(Sema &S, SourceLocation Loc,
- OverloadCandidateSet::iterator& Best);
+ OverloadCandidateSet::iterator& Best,
+ bool UserDefinedConversion = false);
void NoteCandidates(Sema &S,
OverloadCandidateDisplayKind OCD,
@@ -642,7 +643,8 @@ namespace clang {
bool isBetterOverloadCandidate(Sema &S,
const OverloadCandidate& Cand1,
const OverloadCandidate& Cand2,
- SourceLocation Loc);
+ SourceLocation Loc,
+ bool UserDefinedConversion = false);
} // end namespace clang
#endif // LLVM_CLANG_SEMA_OVERLOAD_H