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

mikerobi at ameritech dot net gcc-bugzilla@gcc.gnu.org
Tue Jan 25 01:34:00 GMT 2005


The following code will compile without warning.  This isn't exactly a bug, but
it is inconsistant from how other types are treated.

struct bset{
  bool bit: 93111;
};

-- 
           Summary: Does warn if bit-fields exceed the size of bool types
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikerobi at ameritech dot net
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: multiple platforms


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19618



More information about the Gcc-bugs mailing list