PR c++/85553
commit854cee9bed195b5f4447287f8710eb64acc11c8a
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2018 20:29:12 +0000 (27 20:29 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2018 20:29:12 +0000 (27 20:29 +0000)
tree71f0dd1ef271f4cf3f3768b6ba3cb0ae33ed8648
parent6f5a18043fa69d917f062cf9c06080e3966e3dde
PR c++/85553
* init.c (build_zero_init_1): For zero initialization of
NULLPTR_TYPE_P type use build_int_cst directly.

* g++.dg/cpp0x/Wzero-as-null-pointer-constant-3.C: Add dg-bogus
directive.
* g++.dg/cpp0x/constexpr-85553.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259728 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-85553.C [new file with mode: 0644]