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

--- Comment #1 from Bolpat <[email protected]> ---
I’d suggest DMD abort when a `static foreach` surpasses 2^16−1 (65,535)
iterations; also add a compiler switch (suggestion:
`-static-foreach-depth=<number>`) to change the aforementioned default for the
rare cases it’s needed. Alternatively, a `pragma` could work well, too.

--

Reply via email to