re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 10 Apr 2018 22:34:06 +0000 (22:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 10 Apr 2018 22:34:06 +0000 (22:34 +0000)
commit310e77fe20f20da1cfcb6adb44ac52ccd127ed58
tree3fef46997eb34456d711d31cce93f3b8cdf76444
parent6f47ccff0e9c4dab5e9929affa99927e91c51c3c
re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)

/cp
2018-04-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70808
* init.c (build_zero_init_1): Handle NULLPTR_TYPE_P being true of
the type like TYPE_PTR_OR_PTRMEM_P.

/testsuite
2018-04-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70808
* g++.dg/warn/Wzero-as-null-pointer-constant-7.C: New.

From-SVN: r259303
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C [new file with mode: 0644]