]> granicus.if.org Git - clang/commit
Sema: Taking the address of a dtor is illegal per C++ [class.dtor]p2.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Oct 2013 09:44:41 +0000 (09:44 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Oct 2013 09:44:41 +0000 (09:44 +0000)
commit6e04a849fec62c15968f8a1c94ac380f5eae7b99
treeef2edeca11282927d574064e307a3a7c536ade42
parent4e30cdf93fec46a6ceb326e57ceb46ad7e9c2c6c
Sema: Taking the address of a dtor is illegal per C++ [class.dtor]p2.

Emit a proper error instead of crashing in CodeGen. PR16892.

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