https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61512

--- Comment #6 from Marc Glisse <glisse at gcc dot gnu.org> ---
Really? With _GLIBCXX_DEBUG, your program is supposed to print the following
message (even with the old gcc-4.4 you reported this against):

/usr/include/c++/4.8/debug/safe_iterator.h:307:error: attempt to increment 
    a past-the-end iterator.

Objects involved in the operation:
iterator "this" @ 0x0x7fff4a666fb0 {
type =
N11__gnu_debug14_Safe_iteratorISt23_Rb_tree_const_iteratorIiENSt7__debug3setIiSt4lessIiESaIiEEEEE
(mutable iterator);
  state = past-the-end;
  references sequence with type `NSt7__debug3setIiSt4lessIiESaIiEEE' @
0x0x7fff4a666fe0
}

Reply via email to