[Issue 11160] New: Bitfield compilation error with degenerate bitfields of length 32 & 64
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 2 16:42:59 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11160
Summary: Bitfield compilation error with degenerate bitfields
of length 32 & 64
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: safety0ff.bugz at gmail.com
--- Comment #0 from safety0ff.bugz at gmail.com 2013-10-02 16:42:58 PDT ---
According to the documentation the only constraint on bitfields is:
"The sum of all bit lengths in one bitfield instantiation must be exactly 8,
16, 32, or 64."
The current implementation support degenerate bitfields with field lengths 8
and 16.
For example:
mixin(bitfields!(uint, "x", 8, int, "y", 8));
mixin(bitfields!(uint, "x", 8, int, "y", 8, int, "z", 16));
But not with 32 and 64 as length.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list