[Issue 24263] New: -preview=bitfields: Bit field address escapes through `ref`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 27 14:24:13 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24263
Issue ID: 24263
Summary: -preview=bitfields: Bit field address escapes through
`ref`
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ogion.art at gmail.com
struct S {
ubyte _x:4, _y:4;
ubyte* p() => &_x; // Error: cannot take address of bit-field `_x`
ref ubyte x() => _x; // Compiles
}
--
More information about the Digitalmars-d-bugs
mailing list