]> granicus.if.org Git - clang/commit
Superficial fix for PR20218: binding a function lvalue to a const reference to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 Jul 2014 02:28:44 +0000 (02:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 Jul 2014 02:28:44 +0000 (02:28 +0000)
commita1f8d5aa8549f2f79cd57ab7b9357638c0353119
tree0110a37ff70d909cadf5cc74ca6184d0edad343d
parent03fb337df3631b6b4b894c363487d09228a912f0
Superficial fix for PR20218: binding a function lvalue to a const reference to
a function pointer is neither better nor worse than binding a function lvalue
to a function rvalue reference. Don't get confused and think that both bindings
are binding to a function lvalue (which would make the lvalue form win); the
const reference is binding to an rvalue.

The "real" bug in PR20218 is still present: we're getting the wrong answer from
template argument deduction, and that's what leads us to this weird overload
set.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCXX/overload-call.cpp