http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50529
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2011-09-27 AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com Summary|std::vector::erase invokes |[C++0x] std::vector::erase |undefined behavior with |invokes undefined behavior |empty range |with empty range Ever Confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-27 00:38:24 UTC --- Ok, thanks, it's also an optimization.