https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65022
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I'm not sure what you are saying is a bug, but I'm guessing you missed this precondition: 1 Requires: pos <= size().