This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20019] incorrect overflow warning
- From: "schlie at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2005 14:33:07 -0000
- Subject: [Bug c++/20019] incorrect overflow warning
- References: <20050217025913.20019.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schlie at comcast dot net 2005-02-17 14:33 -------
(In reply to comment #8)
> char x = 0x80; warning: value changes sign during integer type conversion
Implying an analogous warning for all assignments between dissimilarly
signed variables (i.e. signed x; unsigned y; x = y;) which I believe are
considered "compatible"; and half of all unsigned hex constants being
assigned to signed types even if cast, as it's arguably the cast which
produces the virtual numerical over/underflow.
(where although you're numerically correct, seems like a lot of noise?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20019