On Wed, Nov 28, 2018 at 09:42:47AM +0100, Jakub Jelinek wrote: > Bootstrapped/regtested on x86_64-linux and i686-linux (earlier version > without the insert_decl_map call), ok for trunk if it passes another > bootstrap/regtest in the current form?
FYI, bootstrapped/regtested successfully on both. > 2018-11-28 Jakub Jelinek <ja...@redhat.com> > > PR c++/86669 > * optimize.c (clone_body_copy_decl): New function. > (clone_body): Use it for base cdtors. Remap here only > DECL_INITIAL of decls that don't have DECL_CONTEXT of the > new clone. > > * g++.dg/cpp0x/initlist105.C: New test. > * g++.dg/cpp0x/initlist106.C: New test. > * g++.dg/other/pr86669.C: New test. Jakub