https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113767
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|ASSIGNED |RESOLVED --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- The fix on the branches is just to disable NRV in the presence of backward goto, as the fix on the trunk was too involved to backport. So this testcase no longer puts ss in the return slot in 11/12/13, but instead returns a copy; the extra destructor call is for the copy. It looks mismatched because there's no user-defined copy constructor to add another "Cons" line; adding that makes it look better. *** This bug has been marked as a duplicate of bug 92407 ***