This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85553] [8/9 Regression] cannot list-initialize a variable of type std::nullptr_t
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Apr 2018 20:29:44 +0000
- Subject: [Bug c++/85553] [8/9 Regression] cannot list-initialize a variable of type std::nullptr_t
- Auto-submitted: auto-generated
- References: <bug-85553-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85553
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Apr 27 20:29:12 2018
New Revision: 259728
URL: https://gcc.gnu.org/viewcvs?rev=259728&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-85553.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-3.C