Bug 15659 – SList: clear() can cause crash

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-08T19:42:00Z
Last change time
2016-02-09T05:14:11Z
Assigned to
nobody
Creator
sigod.mail

Comments

Comment #0 by sigod.mail — 2016-02-08T19:42:45Z
This code crashes: import std.container.slist; SList!int s; s.clear();
Comment #1 by sigod.mail — 2016-02-08T19:49:00Z
Comment #2 by github-bugzilla — 2016-02-09T05:14:10Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/b847c5a194f0eea8429c50c8a2539ca82ff2bb55 Fix Issue 15659 - fix crash in SList.clear() https://github.com/D-Programming-Language/phobos/commit/f62c716072380bb52b9918c8d8d1fd7d3079b7fb Merge pull request #3980 from sigod/slist-clear-crash Fix Issue 15659 - fix crash in SList.clear()