aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/misc.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-06-01 16:13:48 -0400
committerJason Merrill <jason@redhat.com>2022-06-02 15:15:26 -0400
commitdb4243bb681f7d4e82c15674eb3bfd9b82b0cf71 (patch)
tree37a403616ad4e7c5d037270e9a1708150c619a1a /gcc/ada/gcc-interface/misc.cc
parent37e4e7f77d8f7b7e911bf611a0f8edbc3a850c7a (diff)
downloadgcc-db4243bb681f7d4e82c15674eb3bfd9b82b0cf71.zip
gcc-db4243bb681f7d4e82c15674eb3bfd9b82b0cf71.tar.gz
gcc-db4243bb681f7d4e82c15674eb3bfd9b82b0cf71.tar.bz2
c++: constexpr empty aggr [PR105795]
In this testcase, leaving ctx->ctor pointing to the enclosing object meant that evaluating the initializer for the subobject clobbered previous initializers for the enclosing object. So do update ctx->ctor, just don't add it to the enclosing object ctor. PR c++/105795 gcc/cp/ChangeLog: * constexpr.cc (cxx_eval_bare_aggregate): Always call init_subob_ctx. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/constexpr-aggr-base1.C: New test.
Diffstat (limited to 'gcc/ada/gcc-interface/misc.cc')
0 files changed, 0 insertions, 0 deletions