Bug 14920 – [REG2.067.0] SList.insertAfter on uninitialized list triggers assertion in _first
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-08-14T10:29:00Z
Last change time
2017-07-19T17:43:44Z
Keywords
pull
Assigned to
nobody
Creator
secondaryAccount
Comments
Comment #0 by secondaryAccount — 2015-08-14T10:29:39Z
see: http://forum.dlang.org/post/[email protected]
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.
Comment #1 by ag0aep6g — 2015-08-14T14:11:36Z
Works with 2.066, fails since 2.067, making this a regression.
Comment #2 by secondaryAccount — 2015-08-14T19:16:26Z