Left shift of negative value

Andrew Haley aph@redhat.com
Tue Dec 1 16:07:00 GMT 2015


Do we support left shift of a negative value?  Technically it's
undefined and ubsan warns about it.  However, a ton of software would
surely break if we didn't do the obvious right thing.  I can't find
anything in the GCC manual.

Thanks,

Andrew.



More information about the Gcc-help mailing list