]> granicus.if.org Git - clang/commit
In C++98, if an rvalue reference binds to a function lvalue (or an xvalue or an
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 Jul 2014 19:54:05 +0000 (19:54 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 Jul 2014 19:54:05 +0000 (19:54 +0000)
commitd7d26786d2bef1f4096ae142380b79724e78fe2d
tree83aa20cdd80b4afde837f2bbaf994c3924ce0069
parent74261e38efaa174d256fe35156859ce35b5e2db7
In C++98, if an rvalue reference binds to a function lvalue (or an xvalue or an
array prvalue), treat that as a direct binding. Only the class prvalue case
needs to be excluded here; the rest are extensions anyway, so we can treat them
as we would in C++11.

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