This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24542] potential integer overflow should be warned on assignment to wider variable
- From: "alexey at hyperroll dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2006 05:48:21 -0000
- Subject: [Bug c/24542] potential integer overflow should be warned on assignment to wider variable
- References: <bug-24542-11594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from alexey at hyperroll dot com 2006-09-18 05:48 -------
(In reply to comment #9)
> We should never warn on multiply because it is just too crazy to. This is what
> debugging is about, debug your program for mistakes like this.
The citation may be used to eliminate every warning any compiler produces:
"just debug, why bother? Ain't you a programmer?" I've tried to specify a
warning that comes for developers when they do a scaling of their applications
for a larger input data, and just do not see when the overflowing happens.
So, you're free to reject the issue, but the reason you've given... Personally,
I do not accept it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542