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

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

https://gcc.gnu.org/g:8bae2c531d2ea8f7872ed41f273b6fabaa6a9965

commit r13-8271-g8bae2c531d2ea8f7872ed41f273b6fabaa6a9965
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Feb 1 17:23:53 2024 -0500

    c++: no_unique_address and constexpr [PR112439]

    Here, because we don't build a CONSTRUCTOR for an empty base, we were
    wrongly marking the Foo CONSTRUCTOR as complete after initializing the
Empty
    member.  Fixed by checking empty_base here as well.

            PR c++/112439

    gcc/cp/ChangeLog:

            * constexpr.cc (cxx_eval_store_expression): Check empty_base
            before marking a CONSTRUCTOR readonly.

    gcc/testsuite/ChangeLog:

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

    (cherry picked from commit f4998609908e4926fc095ce97cb84b187294fd1d)

Reply via email to