------- Comment #3 from rguenth at gcc dot gnu dot org 2008-01-13 12:53 ------- This is fixed in newer releases. Note that while the code overflows the signed bitfield, it is still valid as the bitfield is integer promoted before each operation.
Maybe fixed by the fix for PR30274. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |wrong-code Known to fail| |4.0.4 4.1.3 Known to work| |3.4.6 4.2.3 4.3.0 Last reconfirmed|0000-00-00 00:00:00 |2008-01-13 12:53:24 date| | Summary|[4.0.2|4.1.0] bitwise shift |[4.1 Regression] bitwise |optimization error |shift optimization error Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32463