[Bug c/47821] BUG: warning: left shift count >= width of type
nfavaro at uwo dot ca
gcc-bugzilla@gcc.gnu.org
Sun Feb 20 07:30:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47821
nfavaro at uwo dot ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from nfavaro at uwo dot ca 2011-02-20 03:45:47 UTC ---
In attempts to work-around the issue, this was fashioned
kk = ((long)B << 56);
It was assumed at the onset that the destination of the shift
was long kk and it should compile correctly, but did not.
Casting B long removes the warning and produces correct results.
-NF
More information about the Gcc-bugs
mailing list