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

Nick Treleaven <[email protected]> changed:

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

--- Comment #3 from Nick Treleaven <[email protected]> ---
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.

--

Reply via email to