https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61512
--- Comment #2 from Rohit Sharma <srohit.pda at gmail dot com> --- (In reply to Marc Glisse from comment #1) > You are not allowed to call ++ on an iterator if calling * on it would be > illegal. I may agree to your comment Marc. Hanging code is manifestation is a sure bug - either in libstdc++ or gcc. Do you agree?