www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20957] New: void member initialisation is ignored for out

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

          Issue ID: 20957
           Summary: void member initialisation is ignored for out struct
                    parameters
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ilyayaroshenko gmail.com

struct A
{
    bool sign;
    int length;
    size_t[256] data = void;
}

void foo(out A a)
{
}


void example.foo(out example.A):
        mov     edx, 2056
        xor     esi, esi
        jmp     memset PLT

--
Jun 19