This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug translation/23540] Shifting wraps around => miscompilation
- From: "drab at kepler dot fjfi dot cvut dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2005 02:50:08 -0000
- Subject: [Bug translation/23540] Shifting wraps around => miscompilation
- References: <20050824023833.23540.drab@kepler.fjfi.cvut.cz>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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