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

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

https://gcc.gnu.org/g:49f421a31f63405d3ca466e144d010c550206e72

commit r16-1061-g49f421a31f63405d3ca466e144d010c550206e72
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Jun 2 10:59:02 2025 -0400

    c++: constinit diagnostic regression [PR120506]

    In r16-57 I thought it was unnecessary to mention incomplete initialization
    after another diagnostic, but actually it's useful elaboration.

            PR c++/120506

    gcc/cp/ChangeLog:

            * constexpr.cc (cxx_eval_outermost_constant_expr): Always check
            CONSTRUCTOR_NO_CLEARING.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/constinit21.C: New test.

Reply via email to