[Issue 23293] ImportC: Bit fields layout doesn't match C

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 30 08:39:29 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23293

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
Simpler test case:

struct S {
    unsigned d:31;
    _Bool e:1;
};

_Static_assert(sizeof(struct S) == 4, "size != 4"); // 8 with DMD

--


More information about the Digitalmars-d-bugs mailing list