From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7441 invoked by alias); 23 Dec 2004 20:25:39 -0000 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 Received: (qmail 7310 invoked by uid 48); 23 Dec 2004 20:25:26 -0000 Date: Thu, 23 Dec 2004 20:25:00 -0000 Message-ID: <20041223202526.7309.qmail@sourceware.org> From: "aoliva at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041125003250.18666.jakub@gcc.gnu.org> References: <20041125003250.18666.jakub@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/18666] [4.0 Regression] Conversion of floating point into bit-fields X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg03384.txt.bz2 List-Id: ------- Additional Comments From aoliva at gcc dot gnu dot org 2004-12-23 20:25 ------- http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_120.html seems to be pretty clear on this matter: the type of the bit-field is informally unsigned int :1, so the conversion invokes undefined behavior per 6.3.1.4/#1. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18666