[Bug c++/20019] incorrect overflow warning

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 17 13:59:00 GMT 2005

------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-17 03:43 -------
static const int lwbi = lwb;

lwb = 0x80

lwbi is the signed extended version of lwb to the size of int so you will still get 0xFFFFFF80.

So this is still not a bug.

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


More information about the Gcc-bugs mailing list