https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70690

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:bd95d75f3412e1a7debab7c6c602ba409f274eb5

commit r12-5254-gbd95d75f3412e1a7debab7c6c602ba409f274eb5
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Nov 11 22:03:53 2021 -0500

    c++: c++20 constexpr default ctor and array init

    The implicit constexpr patch revealed that marking the constructor in the
    PR70690 testcase as constexpr made the bug reappear, because build_vec_init
    assumed that a constexpr default constructor initialized the whole object,
    so it was equivalent to value-initialization.  But this is no longer true
in
    C++20.

            PR c++/70690

    gcc/cp/ChangeLog:

            * init.c (build_vec_init): Check default_init_uninitialized_part in
            C++20.

    gcc/testsuite/ChangeLog:

            * g++.dg/init/array41a.C: New test.

Reply via email to