https://issues.dlang.org/show_bug.cgi?id=13425
--- Comment #1 from [email protected] --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/d10fea94d5ba6cb18ba98cb59ecbee21fef3dc82 Fix issue 13425 - DList.linearRemove on last... ...element returns non-empty range. The main issue is that DList.Range is implemented in terms of "first and last" as opposed to "first and past last", which means you have to special-case empty ranges. The fix is to do the same thing as in `opSlice`, and to explicitly initialize a null Range when it is empty. https://github.com/D-Programming-Language/phobos/commit/320d5e7e4714eb70cec641ef67f7ea9cd61b8eaa Merge pull request #2497 from monarchdodra/DListRemove Fix issue 13425 - DList.linearRemove on last... --
