https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104513
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Last reconfirmed| |2022-02-12 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52426 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52426&action=edit gcc12-pr104513.patch That seems to work fine, the base dtors are invoked from try ... finally as the testcase in the patch shows.