https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95615
--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> --- Created attachment 50195 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50195&action=edit Patch for testing This implements the change including cleanup of parm copies with non-trivial DTORs as mentioned above. The test needs to be fixed up to call it multiple times for each throwing case, and to place it in the 'torture' suite, since it's testing code-gen.