]> gcc.gnu.org Git - gcc.git/commit
c++: more constexpr empty base [PR105795]
authorJason Merrill <jason@redhat.com>
Wed, 1 Jun 2022 21:30:25 +0000 (17:30 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 2 Jun 2022 19:16:55 +0000 (15:16 -0400)
commitd19b4342c19e5a7fd84888aa06ebc106438d0c46
treef50169adef565e41d469bf87917fce67c9f6d833
parentdb4243bb681f7d4e82c15674eb3bfd9b82b0cf71
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.
gcc/cp/constexpr.cc
This page took 0.06087 seconds and 6 git commands to generate.