[Bug c/28195] << (shift operator) does rotate operation

2006-06-28 Thread falk at debian dot org


--- Comment #1 from falk at debian dot org  2006-06-28 17:57 ---
Shifting by an amount larger than the size of a type is undefined behavior,
so anything might happen. Gcc even warns about this.


-- 

falk at debian dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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



[Bug c/28195] << (shift operator) does rotate operation

2006-06-29 Thread tetsuji dot rai at gmail dot com


--- Comment #2 from tetsuji dot rai at gmail dot com  2006-06-29 07:30 
---
sorry and thanks.  my mistake.


-- 


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