This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r231798 - in /trunk/gcc: cp/ChangeLog cp/init.c...
- From: ppalka at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 18 Dec 2015 02:25:39 -0000
- Subject: r231798 - in /trunk/gcc: cp/ChangeLog cp/init.c...
Author: ppalka
Date: Fri Dec 18 02:25:39 2015
New Revision: 231798
URL: https://gcc.gnu.org/viewcvs?rev=231798&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/pr68831.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog