-
-
Notifications
You must be signed in to change notification settings - Fork 654
Open
Labels
Feature: bitfieldsFeature:ImportCPertaining to ImportC supportPertaining to ImportC supportP1Severity:normal
Description
Walter Bright (@WalterBright) reported this on 2024-05-06T07:13:24Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=24538
Description
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.
Metadata
Metadata
Assignees
Labels
Feature: bitfieldsFeature:ImportCPertaining to ImportC supportPertaining to ImportC supportP1Severity:normal