warning: right shift count >= width of type

Andrew Haley aph@redhat.com
Mon Nov 29 17:01:00 GMT 2004


Dave Korn writes:
  > 
 >   Why isn't the shift operation optimised away and replaced with const_int
 > 0?

Why should it be?

Okay Dave, you guessed it: go see Section 6.5.7, para. 3.  :-)

Andrew.



More information about the Gcc mailing list