https://issues.dlang.org/show_bug.cgi?id=22749
Issue ID: 22749
Summary: importC: C11 does not allow taking the address of a
bit-field
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
DMD happily compiles this C11 code.
---
struct bit
{
int v : 1;
};
int main()
{
struct bit b;
void* ptr = &b.v;
}
---
--
