Fix PR c++/68831 (superfluous -Waddress warning for C++ delete)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 18 Dec 2015 02:25:39 +0000 (02:25 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 18 Dec 2015 02:25:39 +0000 (02:25 +0000)
commit458cd4c394dec8e42ff75ecd5212461408962203
tree53117fe8689b59a9be703212885448c929b1aaab
parent474c8a0757edd6f650220dcba31b69dcb83c4b73
Fix PR c++/68831 (superfluous -Waddress warning for C++ delete)

gcc/cp/ChangeLog:

PR c++/68831
* init.c (build_delete): Use a warning sentinel to disable
-Waddress warnings when building the conditional that tests
if the operand is NULL.

gcc/testsuite/ChangeLog:

PR c++/68831
* g++.dg/pr68831.C: New test.

From-SVN: r231798
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr68831.C [new file with mode: 0644]