This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19618] Does warn if bit-fields exceed the size of bool types
- From: "schlie at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2005 03:24:46 -0000
- Subject: [Bug c++/19618] Does warn if bit-fields exceed the size of bool types
- References: <20050125013354.19618.mikerobi@ameritech.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schlie at comcast dot net 2005-01-25 03:24 -------
(In reply to comment #1)
An interesting question might be how wide is a bool type, I believe C defines it as
having a rank less than char, and preumably at least as wide as an unsigned:1, so
does that imply a warning is appropriate for any bool bit-field greater than 1 bit wide?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19618