www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14834] New: [REG 2.068-b2] dirEntries with mask stopped


          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 puremagic.com
          Reporter: gassa 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.

Jul 26 2015