Long bitfields in PODs

Mark Mitchell mark at codesourcery.com
Tue May 13 20:11:45 UTC 2003


A type like:

  struct S {
    int i : 8192;
  };

is a POD.

According to 2.4, that means that the underlying C layout rules for
the system should be used.  Unfortunately, that kind of type is not
valid in C.

I believe that all types with bitfields wider than their declared
types should be considered non-PODs for the purposes of layout.

Any objections?

--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com




More information about the cxx-abi-dev mailing list