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 translation/23540] Shifting wraps around => miscompilation


------- Additional Comments From drab at kepler dot fjfi dot cvut dot cz  2005-08-24 02:50 -------
(In reply to comment #1)
> This is undefined code.  The C standard says that shifts bigger than the size
is undefined which means 
> we can have different values at different levels of optimizations.

Ah! Sorry, then.

-- 


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


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