https://issues.dlang.org/show_bug.cgi?id=13075
Issue ID: 13075 Summary: [2.066.0-b2] DList. Cannot remove from an un-initialized List Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: DMD Assignee: nob...@puremagic.com Reporter: ncras...@gmail.com DMD: 2.066.0-b2 Platform: 3.14.9-200.fc20.x86_64 ``` import std.container; void main() { DList!int list; list.clear(); } ``` Run-time assertion: ``` core.exception.AssertError@/usr/include/dmd/phobos/std/container/dlist.d(480): Cannot remove from an un-initialized List ---------------- /home/ncrashed/dev/d/dmd-test/dmd-test(pure nothrow @nogc @safe std.container.dlist.DList!(int).DList.Range std.container.dlist.DList!(int).DList.remove(std.container.dlist.DList!(int).DList.Range)+0x90) [0x4521a0] /home/ncrashed/dev/d/dmd-test/dmd-test(pure nothrow @nogc @safe void std.container.dlist.DList!(int).DList.clear()+0x65) [0x451a4d] /home/ncrashed/dev/d/dmd-test/dmd-test(_Dmain+0x1a) [0x4484ba] /home/ncrashed/dev/d/dmd-test/dmd-test(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0x28) [0x45cf40] /home/ncrashed/dev/d/dmd-test/dmd-test(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2d) [0x45ce85] /home/ncrashed/dev/d/dmd-test/dmd-test(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x2d) [0x45cee5] /home/ncrashed/dev/d/dmd-test/dmd-test(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2d) [0x45ce85] /home/ncrashed/dev/d/dmd-test/dmd-test(_d_run_main+0x192) [0x45cdfa] /home/ncrashed/dev/d/dmd-test/dmd-test(main+0x25) [0x458b6d] /lib64/libc.so.6(__libc_start_main+0xf5) [0x39e9021d65] ``` --