[Sema] Diagnose use of declaration correctly.
authorDavide Italiano <davide@freebsd.org>
Wed, 22 Jul 2015 00:30:58 +0000 (00:30 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 22 Jul 2015 00:30:58 +0000 (00:30 +0000)
commitf179e36e0e2c0ca8a28815c95758c3e44ad08fc6
tree171b6056c6ba82d143307266f0e81395229107fa
parente171da5cb781dfaa06f8637b35c06f93e8bb5604
[Sema] Diagnose use of declaration correctly.

Before we skipped that for virtual functions not fully qualified (r81507).
This commit basically reverts this to the older behaviour, which seems
more consistent. We now also correctly consider ill-formed calls to deleted
member functions, which were silently passed before in some cases.
The review contains the whole discussion.

PR: 20268
Differential Revision:  http://reviews.llvm.org/D11334

llvm-svn: 242857
clang/lib/Sema/SemaExprMember.cpp
clang/test/SemaCXX/attr-deprecated.cpp
clang/test/SemaCXX/deleted-function-access.cpp [new file with mode: 0644]