------- Comment #13 from paolo dot carlini at oracle dot com 2009-09-15 09:58 ------- Thanks. I'm attaching a slightly tweaked version of the patch, avoiding postincrement of the iterators and reformatted according to our conventions, which I successfully regtested. A minor issue I can see, in principle __k * 2 can overflow, _Distance is signed, we should rewrite the check slightly differently to avoid that risk. Chris, what do you think?
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41351