Bug 21628 – The padding bits of bitfields could be calculated automatically
Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-02-11T07:22:30Z
Last change time
2021-02-12T07:09:46Z
Keywords
pull
Assigned to
No Owner
Creator
Berni44
Comments
Comment #0 by bugzilla — 2021-02-11T07:22:30Z
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));
}
Comment #1 by dlang-bot — 2021-02-11T07:28:14Z
@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