From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25388 invoked by alias); 18 Sep 2006 05:48:29 -0000 Received: (qmail 25366 invoked by uid 48); 18 Sep 2006 05:48:21 -0000 Date: Mon, 18 Sep 2006 05:48:00 -0000 Message-ID: <20060918054821.25365.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/24542] potential integer overflow should be warned on assignment to wider variable In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "alexey at hyperroll dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01659.txt.bz2 List-Id: ------- 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