]> granicus.if.org Git - clang/commit
Fix a bug I found while preparing my devmtg talk: When passing NULL to a
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 8 Nov 2012 20:50:02 +0000 (20:50 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 8 Nov 2012 20:50:02 +0000 (20:50 +0000)
commit45a37da030be06bb7babf5e65a64d62cd0def7e6
treec133fffaa493ef15e18a6d366869fd6702a196f9
parentc4497036cff93da286ae188cfd95aa3f01390c61
Fix a bug I found while preparing my devmtg talk: When passing NULL to a
function that takes a const Foo&, where Foo is convertible from a large number
of pointer types, we print ALL the overloads, no matter the setting of
-fshow-overloads.

There is potential follow-on work in unifying the "print candidates, but not
too many" logic between OverloadCandidateSet::NoteCandidates and
ImplicitConversionSequence::DiagnoseAmbiguousConversion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167596 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCXX/ambiguous-conversion-show-overload.cpp [new file with mode: 0644]