struct A { mixin(bitfields!( bool, "flag1", 1, bool, "flag2", 1)); } could be treated as if it were struct A { mixin(bitfields!( bool, "flag1", 1, bool, "flag2", 1, uint, "", 6)); }
@berni44 created dlang/phobos pull request #7787 "Fix Issue 21628 - The padding bits of bitfields could be calculated automatically" fixing this issue: - Fix Issue 21628 - The padding bits of bitfields could be calculated automatically https://github.com/dlang/phobos/pull/7787