see: http://forum.dlang.org/post/mqk2g7$pv8$1@digitalmars.com import std.container: SList; void main() { SList!int tmp; tmp.insertAfter( tmp[], 3 ); } triggers assertion in SList._first(), line 57 because the list is not initialized. I am working on a PR.
Works with 2.066, fails since 2.067, making this a regression.
https://github.com/D-Programming-Language/phobos/pull/3554
Commits pushed to stable at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/0c28c7717437b10570677994112fc874e196d26a fix issue 14920 https://github.com/D-Programming-Language/phobos/commit/aac09abf0a8f8624e81bbac4ded38b941cc768d9 Merge pull request #3557 from tosttost/issue_14920 fix issue 14920 - [REG2.067.0] SList.insertAfter on uninitialized list triggers assertion in _first targeting stable branch
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/0c28c7717437b10570677994112fc874e196d26a fix issue 14920 https://github.com/D-Programming-Language/phobos/commit/aac09abf0a8f8624e81bbac4ded38b941cc768d9 Merge pull request #3557 from tosttost/issue_14920
Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/0c28c7717437b10570677994112fc874e196d26a fix issue 14920 https://github.com/dlang/phobos/commit/aac09abf0a8f8624e81bbac4ded38b941cc768d9 Merge pull request #3557 from tosttost/issue_14920