Hi Simson,
the issue isn't the bitfields here and isn't related to the type in
first place. The issue is that the __attribute__((pack)) works now
only on the outer structure alignment, but doesn't affect the padding
between different fields.
Please file a bug report to gcc's bugzilla about this.
On Wed, Aug 8, 2012 at 11:05 AM, Simson Garfinkel wrote:
> I've reported a number of bugs on this mailing list. I don't know if that is
> the correct way to report them. My bugs aren't getting fixed, so I'm coding
> around them, but it would be nice for at least someone to acknowledge
> them...
T
compiler version: i686-w64-mingw32-g++ (GCC) 4.7.0 20120322 (Fedora MinGW
4.7.0-2.fc17)
Structures with Bitfields defined as "unsigned int" are not being packed
properly. They are being packed properly if the bitfields are defined with
"uint8_t".
Test program:
#include
#include
struct v1 {