This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85553] [8/9 Regression] cannot list-initialize a variable of type std::nullptr_t


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]