digitalmars.D.bugs - [Issue 21250] New: dirEntries on non-existant directory causes
- d-bugmail puremagic.com (40/40) Sep 15 2020 https://issues.dlang.org/show_bug.cgi?id=21250
https://issues.dlang.org/show_bug.cgi?id=21250 Issue ID: 21250 Summary: dirEntries on non-existant directory causes assert error Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: john.loughran.colvin gmail.com % cat simple.d void main() { import std.file : dirEntries, SpanMode; auto binDir = "/hist"; dirEntries(binDir, "*.bin", SpanMode.depth); } % dmd -run simple.d core.exception.AssertError /home/john/dlang/dmd-2.094.0-beta.1/linux/bin64/../../src/phobos/std/typecons.d(6450): Assertion failure ---------------- ??:? _d_assertp [0x564f99e8c949] ??:? void std.typecons.RefCounted!(std.file.DirIteratorImpl, 0).RefCounted.__dtor() [0x564f99e8ba18] ??:? void std.file.DirIterator.__fieldDtor() [0x564f99e904b4] ??:? ref trusted std.file.DirIterator std.file.DirIterator.__ctor(immutable(char)[], std.file.SpanMode, bool) [0x564f99e90404] ??:? std.algorithm.iteration.FilterResult!(std.file.dirEntries(immutable(char)[], immutable(char)[], std.file.SpanMode, bool).f(std.file.DirEntry), std.file.DirIterator).FilterResult std.file.dirEntries(immutable(char)[], immutable(char)[], std.file.SpanMode, bool) [0x564f99e905c3] ??:? _Dmain [0x564f99e8b95e] % dmd --version DMD64 D Compiler v2.094.0-beta.1 --
Sep 15 2020