May 06 [Issue 24538] New: ImportC: packed bitfields not implemented | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24538 Issue ID: 24538 Summary: ImportC: packed bitfields not implemented Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: bugzilla@digitalmars.com >From Timon Gehr: ``` #include <stdio.h> struct __attribute__((packed)) S{ long long x:8; }; int main(){ printf("%ld\n",sizeof(long long)); // 8 printf("%ld\n",sizeof(struct S)); // 1 } ``` gcc gives 8 and 1, dmd gives 8 and 8. -- |
Copyright © 1999-2021 by the D Language Foundation