https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Arsen Arsenović from comment #10) > possibly fixed in 13.1 by r13-4479-g58a7b1e354530d ? > > I cannot reproduce with https://gcc.gnu.org/bugzilla/attachment.cgi?id=49811 Indeed. I modified that to add a global int count and then in the lifetime_tester destructor did `if (count++) abort();` to make it easier to test automatically. The double destruction was fixed by the commit suggested by Arsen.