Bug 24538 – ImportC: packed bitfields not implemented

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-05-06T07:13:24Z
Last change time
2024-12-13T19:35:06Z
Keywords
ImportC
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#18238 →

Comments

Comment #0 by bugzilla — 2024-05-06T07:13:24Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:35:06Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18238 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB