[Issue 14834] New: [REG 2.068-b2] dirEntries with mask stopped working with "-inline -debug"
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 26 08:41:50 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14834
Issue ID: 14834
Summary: [REG 2.068-b2] dirEntries with mask stopped working
with "-inline -debug"
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: gassa at mail.ru
Created attachment 1533
--> https://issues.dlang.org/attachment.cgi?id=1533&action=edit
example code
import std.file, std.stdio;
void main () {
foreach (fileName; dirEntries (".", "*.*", SpanMode.breadth)) {
writeln (fileName);
}
}
dmd 2.068-b2 on Windows:
1. "dmd -inline -debug -m32" does not list current directory (output is empty),
2. "dmd -inline -debug -m64" crashes,
3. just "-inline" or "-debug" works fine.
With dmd 2.068-b1, all of the above work correctly.
Specifying the concrete type ("string fileName" or "DirEntry fileName") in
foreach does not seem to affect the outcome.
--
More information about the Digitalmars-d-bugs
mailing list