]> granicus.if.org Git - clang/commit
[Sema] Allow casting of some overloaded functions
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 19 Mar 2016 21:36:10 +0000 (21:36 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 19 Mar 2016 21:36:10 +0000 (21:36 +0000)
commite754ecb43be2be2ef7417f13d6ee98c54ee5f5fd
tree980ce04c92293a5395cfb24a469c3bb3f63f79cb
parenta795333934bec106f2dde66447c58f3bf33556c0
[Sema] Allow casting of some overloaded 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 in cast
expressions.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263887 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaCast.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/enable_if.cpp
test/SemaCXX/unaddressable-functions.cpp [new file with mode: 0644]