Hi,<br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I was fixing a bug in ldc while I noticed strange behavior in the dmd implementation.</div><div><br></div><div><pre style="font-size:14px;background-color:rgb(246,246,246);white-space:pre-wrap;margin-bottom:0px;font-family:Consolas,monospace;word-wrap:break-word;margin-top:0px">
struct S { int array[4]; }

void main()
{
    S local = S(67); // local.array = [67, 67, 67, 67]
    static S static_ = S(67); // static_.array = [67, 0, 0, 0]
    assert(local == static_);
}</pre><div><br></div>The assert fails both on current dmd and ldc. Since this is a shady mismatch, I filed a bug report <a href="http://d.puremagic.com/issues/show_bug.cgi?id=9425" target="_blank">http://d.puremagic.com/issues/show_bug.cgi?id=9425</a>. However when checking the integrity of my commit, the testsuite failed at <a href="http://github.com/D-Programming-Language/dmd/blob/e7eff4deef0fb5ec9a89cee4716785832fc41fb9/test/runnable/test42.d#L3223" target="_blank">http://github.com/D-Programming-Language/dmd/blob/e7eff4deef0fb5ec9a89cee4716785832fc41fb9/test/runnable/test42.d#L3223</a>. </div>

<div>Is this static/runtime initialization mismatch intended after all or should I submit a pull request? That would mean that those tests break for other d implementations though.</div><div>Note that this currently blocks some dependant fixes to be submitted into ldc.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Sebastian</div></font></span></div>
</div><br>