[Bug c++/112301] [12/13/14 regression] Double destruction of returned object when exiting the scope causes an exception which gets rethrown since r12-6333-gb10e031458d541

alexander.grund@tu-dresden.de gcc-bugzilla@gcc.gnu.org
Fri Nov 3 10:01:35 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112301

--- Comment #4 from Alexander Grund <alexander.grund@tu-dresden.de> ---
Thank you! Will there be backports for 12.x?

The current patch is conflicting due to "c++: enable NRVO from inner block
[PR51571]" and while it seems to be easy enough to backport both patches in
order I'm not sure about possible side effects due to that especially how some
additionally introduced NRVOs can affect interoperability of programs/libraries
compiled before and after that change.


More information about the Gcc-bugs mailing list