[Issue 14419] [CTFE] Need infinite loop detection?

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 6 10:27:31 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14419

--- Comment #9 from Martin Nowak <code at dawg.eu> ---
For an AST interpreter this would mean you'd need to snapshot loop conditions
to compare them, right?
Sounds like slowing down interpretation and making a JITed interpreter much
harder for a hacky fix to an unsolvable problem
(http://en.wikipedia.org/wiki/Halting_problem).
If you really think we should fix this, then a time limit for CTFE execution
might be feasible.

--


More information about the Digitalmars-d-bugs mailing list