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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Jason Merrill
<[email protected]>:

https://gcc.gnu.org/g:3bcd7855c8fd64282d044684db8b3c7056d7d379

commit r16-8916-g3bcd7855c8fd64282d044684db8b3c7056d7d379
Author: Jason Merrill <[email protected]>
Date:   Fri May 15 01:15:25 2026 -0400

    c++: constexpr nested empty objects [PR125315]

    Here we have one empty subobject inside another; we didn't create a
    CONSTRUCTOR for the outer one, so we don't have it as context for the
inner.

            PR c++/125315

    gcc/cp/ChangeLog:

            * constexpr.cc (init_subob_ctx): Allow both ctor and object
            to be null for an empty subobject.

    gcc/testsuite/ChangeLog:

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

    (cherry picked from commit 9f42a810e6693a85ed312ca80854733daba75037)

Reply via email to