https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66828
--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Thomas Preud'homme from comment #7) > (In reply to Thomas Preud'homme from comment #6) > > Created attachment 36078 [details] > > Use unsigned type for inc to have defined left shift > > Sorry for the delay, I got busy on some other bugs. Would you mind giving > the patch attached to the PR a go? I tried reproducing the issue but > couldn't. I did ran the regression testsuite though and it's all good. Well, the fix is obvious. So I would just commit it.