Comment #0 by verylonglogin.reg — 2012-05-11T03:33:14Z
---
import std.stdio;
void main() {
// for (auto bc = File.ByChunk(File(""), 1); ; ) { } // as expected
// for (auto bc = File("").byChunk(1); false; ) { } // as expected
for (auto bc = File("").byChunk(1); ; ) { } // infinite loop
foreach(line; File("").byLine()) { } // infinite loop too
}
---
It writes this in infinite loop:
Bypasses std.exception.ErrnoException@std\stdio.d(288)
=== Bypassed ===
std.exception.ErrnoException@std\stdio.d(288): Cannot open file `' in mode `rb' (No error)
Not sure is it dmd or druntime issue.
Comment #1 by verylonglogin.reg — 2013-11-07T09:01:38Z
Original testcase works fine now but I'd like to keep it opened as source issue is still unknown.
Comment #2 by verylonglogin.reg — 2013-11-07T09:29:30Z
*** Issue 8455 has been marked as a duplicate of this issue. ***
Comment #3 by dlang-bugzilla — 2017-07-02T02:35:09Z