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

yebblies <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #14 from yebblies <[email protected]> ---
(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.

--

Reply via email to