This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18666] [4.0 Regression] Conversion of floating point into bit-fields
- From: "aoliva at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2004 20:25:26 -0000
- Subject: [Bug c/18666] [4.0 Regression] Conversion of floating point into bit-fields
- References: <20041125003250.18666.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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