https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99402
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Kip Warner from comment #0) > // This results in memory corruption, or an abort with STL debugging I don't see any memory corruption, I think it's just a bug in the Debug Mode checks, which aborts when it shouldn't do. Without those bad checks it doesn't abort, and works correctly.