]> granicus.if.org Git - clang/commit
Diagnose trying to delete a pointer to an abstract class with a non-virtual destructo...
authorEli Friedman <eli.friedman@gmail.com>
Tue, 26 Jul 2011 22:50:18 +0000 (22:50 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 26 Jul 2011 22:50:18 +0000 (22:50 +0000)
commite33f643230738400f0bf5503a87d886e9bc635de
tree51089713c6d870273c834706958cd2bd144b45d4
parent0c14190ae46a470fe929a764e1ac8ada2236b330
Diagnose trying to delete a pointer to an abstract class with a non-virtual destructor. PR10504.

I'm not completely sure the standard allows us to reject this, but if it doesn't, it should. :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136172 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/new-delete.cpp