https://issues.dlang.org/show_bug.cgi?id=13076
Issue ID: 13076 Summary: [dmd 2.066-b2] DList double clearing 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.insert = 42; list.clear(); list.clear(); } ``` Run-time assertion: ``` core.exception.AssertError@/usr/include/dmd/phobos/std/container/dlist.d(481): Remove: Range is empty ---------------- /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)+0xcc) [0x452314] /home/ncrashed/dev/d/dmd-test/dmd-test(pure nothrow @nogc @safe void std.container.dlist.DList!(int).DList.clear()+0x65) [0x451b85] /home/ncrashed/dev/d/dmd-test/dmd-test(_Dmain+0x31) [0x4485f1] /home/ncrashed/dev/d/dmd-test/dmd-test(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0x28) [0x45d150] /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) [0x45d095] /home/ncrashed/dev/d/dmd-test/dmd-test(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x2d) [0x45d0f5] /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) [0x45d095] /home/ncrashed/dev/d/dmd-test/dmd-test(_d_run_main+0x192) [0x45d00a] /home/ncrashed/dev/d/dmd-test/dmd-test(main+0x25) [0x458d7d] /lib64/libc.so.6(__libc_start_main+0xf5) [0x39e9021d65] ``` --