Check the access of operator delete from the destructor context
authorReid Kleckner <reid@kleckner.net>
Thu, 12 Jun 2014 22:39:12 +0000 (22:39 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 12 Jun 2014 22:39:12 +0000 (22:39 +0000)
commit6713086bca8e26ff22343f79172b7dc9fe221aa2
tree0a970afba31c5b838640eb823846b2bf843a81c6
parentd90a8746dfc1dd19775ae6e1efef6b3242dc6553
Check the access of operator delete from the destructor context

Previously we would do the access check from the context of
MarkVTableUsed.

Also update this test to C++11, since that is typically used with the MS
C++ ABI.

Fixes PR20005.

llvm-svn: 210850
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaCXX/microsoft-dtor-lookup.cpp