On 10/13/2018 10:58 AM, Tom Tromey wrote: > From https://docs.microsoft.com/en-us/cpp/c-language/padding-and-alignment-of-structure-members?view=vs-2017: > > Adjacent bit fields are packed into the same 1-, 2-, or 4-byte > allocation unit if the integral types are the same size It's silly to require the integral types to be the same size, since the actual size is given by the number of bits in the bitfield. But if it's the Microsoft API we can't change it. Does the attached patch work around the problem?