This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/67216] false is still a null pointer constant


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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Aug 17 21:40:07 2015
New Revision: 226956

URL: https://gcc.gnu.org/viewcvs?rev=226956&root=gcc&view=rev
Log:
/cp
2015-08-17  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/67216
        * call.c (null_ptr_cst_p): In C++11 return 'false' for 'false'.

/testsuite
2015-08-17  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/67216
        * g++.dg/cpp0x/nullptr34.C: New.
        * g++.dg/warn/Wconversion2.C: Adjust.
        * g++.dg/warn/Wnull-conversion-1.C: Likewise.
        * g++.old-deja/g++.other/null3.C: Likewise.

        * g++.dg/cpp0x/pr51313.C: Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr34.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/pr51313.C
    trunk/gcc/testsuite/g++.dg/warn/Wconversion2.C
    trunk/gcc/testsuite/g++.dg/warn/Wnull-conversion-1.C
    trunk/gcc/testsuite/g++.old-deja/g++.other/null3.C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]