https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68831

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
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

Reply via email to