From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9789 invoked by alias); 15 Jul 2009 07:50:58 -0000 Received: (qmail 9692 invoked by uid 48); 15 Jul 2009 07:50:47 -0000 Date: Wed, 15 Jul 2009 07:50:00 -0000 Message-ID: <20090715075047.9691.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/40752] -Wconversion: do not warn for operands not larger than target type In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "photon at seznam dot cz" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg01231.txt.bz2 ------- Comment #6 from photon at seznam dot cz 2009-07-15 07:50 ------- (In reply to comment #1) > Theses are not false warnings: > c >>= 1; > > is really c = (int)c >> 1; They are false warnings. The implicit conversion cannot alter the value. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752