[Bug 178] cc1d locks up when specifying function instead of function pointer in an array

via D.gnu d.gnu at puremagic.com
Mon Apr 6 07:58:49 PDT 2015


http://bugzilla.gdcproject.org/show_bug.cgi?id=178

--- Comment #2 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
ah, i looked closer at your sample and found that it's an expected behavior.
;-)

what going on here is CTFE. as `ResetHandler` never exits, CTFE interpreter
never exits too. it's possible to write a simple enless loop detector in
interpreter, but it's impossible to detect all kind of endless loops.

so i don't know how to solve this: setting some arbitrary limit on loop
iteration will simply hide the problem, but won't solve it.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20150406/14a874a3/attachment.html>


More information about the D.gnu mailing list