[Bug c++/19618] Does warn if bit-fields exceed the size of bool types

schlie at comcast dot net gcc-bugzilla@gcc.gnu.org
Tue Jan 25 03:25:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list