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

--- Comment #3 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:d19b4342c19e5a7fd84888aa06ebc106438d0c46

commit r13-963-gd19b4342c19e5a7fd84888aa06ebc106438d0c46
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Jun 1 17:30:25 2022 -0400

    c++: more constexpr empty base [PR105795]

    Following on from the previous patch, for trunk let's consistently set
    ctx->ctor to NULL_TREE for empty subobjects.

            PR c++/105795

    gcc/cp/ChangeLog:

            * constexpr.cc (init_subob_ctx): Clear ctx->ctor for empty subob.
            (cxx_eval_store_expression): Likewise.
            (cxx_eval_bare_aggregate): Handle null ctx->ctor.

Reply via email to