March 09 [Issue 24263] -preview=bitfields: Bit field address escapes through `ref` | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24263 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid CC| |nick@geany.org --- Comment #1 from Nick Treleaven <nick@geany.org> --- Same when passing a bitfield as a ref argument: struct S { uint a:1, b:1, c:1; } void f(ref uint b) { b++; } void main() { S s; s.a.f; // allowed! Silently does nothing assert(s.a == 0); // unaffected } -- |
Copyright © 1999-2021 by the D Language Foundation