<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 5 April 2013 20:12, David Nadlinger <span dir="ltr"><<a href="mailto:code@klickverbot.at" target="_blank">code@klickverbot.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See <a href="http://forum.dlang.org/post/CAP9J_HXG8mTtnojU9YwYuSGZp1NQCdY0+7oeHyoQ2WhNR-dAuw@mail.gmail.com" target="_blank">http://forum.dlang.org/post/<u></u>CAP9J_<u></u>HXG8mTtnojU9YwYuSGZp1NQCdY0+<u></u>7oeHyoQ2WhNR-dAuw@mail.gmail.<u></u>com</a> for a minimal example of a closure var not being detected.<br>
<br>
What is you fix?<span class="HOEnZb"><font color="#888888"><br>
<br>
David</font></span><div class="HOEnZb"><div class="h5"><br>
</div></div></blockquote></div><br><br></div><div class="gmail_extra">With my fix, the closure var *is* detected pushed into closureVars in that bug you've posted, but needsClosure() still returns false on the function. In gdc this means that it puts 'a' on a stack frame. And the stackstomp() will override the value.<br>
<br></div><div class="gmail_extra"><br clear="all">-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>