https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Right. Debug mode identifies a problem:
/home/jwakely/gcc/7/include/c++/7.0.0/debug/safe_iterator.h:297:
Error: attempt to increment a singular iterator.
Objects involved in the operation:
iterator "this" @ 0x0x7ffca3d04820 {
type = __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<int*,
std::__cxx1998::vector<int, std::allocator<int> > >, std::__debug::vector<int,
std::allocator<int> > > (mutable iterator);
state = singular;
references sequence with type 'std::__debug::vector<int,
std::allocator<int> >' @ 0x0x7ffca3d047a0
}
Aborted (core dumped)