https://issues.dlang.org/show_bug.cgi?id=24263

Nick Treleaven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |[email protected]

--- Comment #1 from Nick Treleaven <[email protected]> ---
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
}

--

Reply via email to