https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92407
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- The goto defeats finalization here but construction happens multiple times. Not sure if that's allowed by the standard, but I'd say you invoke undefined behavior here?