[Issue 14419] [CTFE] Need infinite loop detection?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 7 09:15:59 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14419
--- Comment #15 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to yebblies from comment #14)
> (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.
>
So then you just need to decide what is a suitable iteration limit, short.max?
ushort.max?
--
More information about the Digitalmars-d-bugs
mailing list