Emit error when using a bound member function for something other than calling it.
commit908200b4754e1544a13c602c412e66ce32d74635
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 1 Nov 2010 18:49:26 +0000 (1 18:49 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 1 Nov 2010 18:49:26 +0000 (1 18:49 +0000)
tree3d3d5b91699328ba5b49f8fab04fa4fcbf91693f
parentd1f3fdb1fbed5e91c55cea66ec7c4edd9b805fdc
Emit error when using a bound member function for something other than calling it.

Also avoids IRGen crashes due to accepting invalid code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117943 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Expr.cpp
lib/Sema/SemaCXXCast.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/ptrtomember.cpp