This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14611] static unsigned int small= -1U;
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2004 13:56:22 -0000
- Subject: [Bug c/14611] static unsigned int small= -1U;
- References: <20040316192946.14611.ierdnah@go.ro>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-03-17 13:56 -------
Indeed. It should really not be that hard to see that an _unsigned_ variable
can't have the value -1 and that the compiler is obviously supposed to do
something about that value when you assign it to an unsigned number!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14611