https://issues.dlang.org/show_bug.cgi?id=24531
Nick Treleaven <n...@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |n...@geany.org --- Comment #3 from Nick Treleaven <n...@geany.org> --- It compiles with: import std.algorithm : filter, map; Adding -dip1000 gives: arrayctfe.d(14): Error: scope variable `srcs` assigned to non-scope parameter `range` calling `arrayCtfe` arrayctfe.d(28): which is not `scope` because of `__r115 = range` Replacing the foreach statement with the while code in comment #0 does compile with -dip1000. --