------- Comment #2 from manu at gcc dot gnu dot org 2010-06-05 11:42 -------
(In reply to comment #1)
> Shifts with shift count equal or greater than bitsize of the lhs type are
> undefined in both C and C++ standards.
... and we should warn in trivial cases like this.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
Status|RESOLVED |UNCONFIRMED
Keywords| |diagnostic
Resolution|INVALID |
Summary|shift is modulo data size |warn for shifts with shift
| |count equal or greater than
| |bitsize of the lhs type
Version|4.5.0 |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44422