http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49717
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-12 13:54:51 UTC --- You should consider using 4.6 for the tests using debug mode - there are some huge performance improvements, where non-debug iterators are used when checking is known to have been done already e.g. instead of incrementing a debug iterator N times and checking on every increment, do the necessary checks once then increment the underlying "unsafe" iterator N times