This is the mail archive of the gcc-bugs@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]

[Bug c/53013] Inconsistent Behaviour with Left Shift Operator.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53013

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-16 22:09:26 UTC ---
No, I would respectfully point out you're wrong, read the links in comment 1. 
Undefined behaviour doesn't just mean "the standard omits to mention what
happens" it means *anything* can happen. That includes different behaviour
every time you run the program (think of accessing uninitialized data that
contains random junk values) or setting your monitor on fire or wiping your
hard drive. You should not have *any* expectations of undefined behaviour.


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