[Sema] Make type deduction work with some overloadable functions
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 19 Mar 2016 21:51:45 +0000 (21:51 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 19 Mar 2016 21:51:45 +0000 (21:51 +0000)
commitcc2f355f71b63f849fbd7cb91b8a09ce27b7b9a1
tree4bf95d1fd1042b880d458eb0efca86a686f3699f
parent3cde9bf9d5734820c1f17981fd235ed98772124a
[Sema] Make type deduction work with some overloadable functions

Some functions can't have their address taken. If we encounter an
overload set where only one of the candidates can have its address
taken, we should automatically select that candidate's type in type
deduction.

Differential Revision: http://reviews.llvm.org/D15591

llvm-svn: 263888
clang/lib/Sema/SemaTemplateDeduction.cpp
clang/test/SemaCXX/unaddressable-functions.cpp