This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Left shift of negative value


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]