re PR c++/85553 (cannot list-initialize a variable of type std::nullptr_t)
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 Apr 2018 20:29:12 +0000 (22:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 Apr 2018 20:29:12 +0000 (22:29 +0200)
commitb2b1ea3455979699f172e1601785efa57e3cd3f2
tree71f0dd1ef271f4cf3f3768b6ba3cb0ae33ed8648
parent3b67d7e6949d199a0aadf866734332374a3eced9
re PR c++/85553 (cannot list-initialize a variable of type std::nullptr_t)

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.

From-SVN: r259728
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]