]> granicus.if.org Git - clang/commit
PR17075: When performing partial ordering of a member function against a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Sep 2013 00:52:39 +0000 (00:52 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Sep 2013 00:52:39 +0000 (00:52 +0000)
commit66118c215183dec714cbbdec8060497675cebcac
treec85a2a9da81df8246c929aef51e586719bf40617
parent2956ef43da9c0e7bce8fae4a015255a2c19458bb
PR17075: When performing partial ordering of a member function against a
non-member function, the number of arguments in the two candidate calls
will be different (the non-member call will have one extra argument).
We used to get confused by this, and fail to compare the last argument
when testing whether the member is better, resulting in us always
thinking it is, even if the non-member is more specialized in the last
argument.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190470 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplateDeduction.cpp
test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp