[Issue 9175] std.algorithm.remove!(predicate) problems

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 17 15:05:10 UTC 2019


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

Andrea Fontana <trikkuz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trikkuz at gmail.com

--- Comment #2 from Andrea Fontana <trikkuz at gmail.com> ---
In my opinion the second example correctly fails.

Indeed p can't be read at compile time. If you replace auto with enum or
immutable the example works fine.

The third example works correctly so I guess we can close this issue.

--


More information about the Digitalmars-d-bugs mailing list