[Bug c++/82039] -Wzero-as-null-pointer-constant triggers when calling std::allocate<...>::allocate

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 4 16:17:00 GMT 2017


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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Sep  4 16:17:11 2017
New Revision: 251668

URL: https://gcc.gnu.org/viewcvs?rev=251668&root=gcc&view=rev
Log:
PR c++/82039 suppress -Wzero-as-null-pointer-constant warning

Backport from mainline
2017-08-31  Jonathan Wakely  <jwakely@redhat.com>

        PR c++/82039
        * include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
        Adjust null pointer constant to avoid warning.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/ext/new_allocator.h


More information about the Gcc-bugs mailing list