From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6511 invoked by alias); 12 Feb 2009 17:34:26 -0000 Received: (qmail 6478 invoked by uid 48); 12 Feb 2009 17:34:14 -0000 Date: Thu, 12 Feb 2009 17:34:00 -0000 Subject: [Bug c++/39170] New: -Wconversion useless X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tom at atoptech dot com" 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-02/txt/msg01121.txt.bz2 I'm sure this has been reported. General narrowing of a value (i,e double to int) needs to be reported, but bit-fields narrowing should not be reported unless asked for. There is nothing in "C" or "C++" to cast a bit-field, which in theory, would remove the warning. This is a serious problem and it makes gcc 4.3 not usable! Test case: Compile "gcc" with -Wconversion. Bit-field warnings need to be disabled We need a 4.3.3 patch otherwise we punt on 4.3 release. -- Summary: -Wconversion useless Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tom at atoptech dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39170