]> granicus.if.org Git - clang/commit
Fix ambiguity detection in GetBestOverloadCandidateSimple.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 30 Jul 2012 15:53:26 +0000 (15:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 30 Jul 2012 15:53:26 +0000 (15:53 +0000)
commit2cd7f41f4eb2b02568664132253f8e1d9cf381dd
tree6ae15806f5a6513448d19a21f20d979acc7efa7f
parent6cc9dc8403c4a8838f4f932e43402090cfe70d98
Fix ambiguity detection in GetBestOverloadCandidateSimple.

When performing the simplistic overload resolution for single-argument methods,
don't check the best overload for ambiguity with itself when the best overload
doesn't happen to be the first one.

Fixes PR13480.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160961 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclCXX.cpp
test/SemaCXX/cxx98-compat.cpp