This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
warning: right shift count >= width of type
- From: Andrew Haley <aph at redhat dot com>
- To: "Dave Korn" <dk at artimi dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 29 Nov 2004 16:29:55 +0000
- Subject: warning: right shift count >= width of type
- References: <NUTMEG5kpCUsVt1IDz7000001b1@NUTMEG.CAM.ARTIMI.COM>
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.