[Issue 14419] [CTFE] Need infinite loop detection?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 7 01:13:14 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14419
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #14 from yebblies <yebblies at gmail.com> ---
(In reply to Martin Nowak from comment #9)
> If you really think we should fix this, then a time limit for CTFE execution
> might be feasible.
An iteration limit would be better than a time limit, because it will not be
dependent on environmental conditions. This would need to be configurable from
the command line etc.
The compilation would terminate with a nice stack trace, making it easy to
debug.
(In reply to Jens Bauer from comment #10)
> 1: on dlang.org, there's an on-line compiler. It wouldn't take much effort
> to bring it to the knees.
It's trival to make a D program that will take a very very long time to
compile, even without infinite loops.
--
More information about the Digitalmars-d-bugs
mailing list