[Bug tree-optimization/66828] [5/6 Regression] gcc/tree-ssa-math-opts.c:2182:38: runtime error: left shift of 72057594037927936 by 8 places cannot be represented in type 'long int'

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 28 06:36:00 GMT 2015


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.



More information about the Gcc-bugs mailing list