http://d.puremagic.com/issues/show_bug.cgi?id=1914


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[EMAIL PROTECTED]
           Keywords|                            |wrong-code




------- Comment #4 from [EMAIL PROTECTED]  2008-11-20 20:42 -------
It seems that it's simply failing to initialise y correctly.  Changing main to

void main()
{
    S1    s;
    writefln(s.y);
    writefln(s.a);

    s.y = 4;
    writefln(s.y);
    writefln(s.a);
}

gives the output

0
[0,1,2,3,4,5,6,7,8,9]
4
[0,1,2,3,4,5,6,7,8,9]


-- 

Reply via email to