digitalmars.D.bugs - [Issue 24613] New: Bitfield with 64 bits always zero
- d-bugmail puremagic.com (28/28) Jun 16 https://issues.dlang.org/show_bug.cgi?id=24613
https://issues.dlang.org/show_bug.cgi?id=24613 Issue ID: 24613 Summary: Bitfield with 64 bits always zero Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: tim.dlang t-online.de Values for a bitfield with 64 bits are not stored and remain 0. ``` struct S { ulong a:64; } void main() { S s; s.a = 1; assert(s.a == 1); // Fails: s.a is 0 } ``` This affects both ImportC and normal D with -preview=bitfields. --
Jun 16