<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - cc1d locks up when specifying function instead of function pointer in an array"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=178#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - cc1d locks up when specifying function instead of function pointer in an array"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=178">bug 178</a>
from <span class="vcard"><a class="email" href="mailto:ketmar@ketmar.no-ip.org" title="Ketmar Dark <ketmar@ketmar.no-ip.org>"> <span class="fn">Ketmar Dark</span></a>
</span></b>
<pre>(In reply to Jens Bauer from <a href="show_bug.cgi?id=178#c7">comment #7</a>)
<span class="quote">> I agree; CTFE is a good feature, indeed.
> Does this happen only for immutable assignments ?</span >
and for array initialization. you'd better read some D book to get it right, as
i really bad at explanations. ;-) i "feel" it, but can't "word" it.
<span class="quote">> I think that it all boils down to if there's a branch-back without any kind
> of conditional exit instruction in the generated code, it would work quite
> well (but would probably not be completely foolproof).</span >
this will require deeper code analysis in frontend. it's doable, but i don't
know if someone will take that task.
in your case, however, CTFE engine should abort before even trying to evaluate
anything, as `void` is not a value suitable for array element. this check is
easier, and it worth filling a bug in DMD bugzilla.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>