[Bug libstdc++/117284] Debug Mode vector invalidates all iterators on assignment

2024-10-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117284 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > else if (__old_size < _Base::size()) And that should be > not <

[Bug libstdc++/117284] Debug Mode vector invalidates all iterators on assignment

2024-10-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117284 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > if (__old_data != _Base::data()) > { > this->_M_invalidate_all(); > this->_M_update_guaranteed_capa

[Bug libstdc++/117284] Debug Mode vector invalidates all iterators on assignment

2024-10-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117284 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2024-10-24 Status|UNCONFI