www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15319] New: module map is in file std/map.d which cannot be

https://issues.dlang.org/show_bug.cgi?id=15319

          Issue ID: 15319
           Summary: module map is in file std/map.d which cannot be read
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: aliloko gmail.com

This used to build with a 2.066 to 2.068 front-end.
Doesn't build anymore with a 2.069 front-end.


--------------

    import std.file;

    void copyDir(string from, string to)
    {
        auto mdFiles = dirEntries(from, SpanMode.shallow);
        foreach(md; mdFiles)
        {
            copy(md, to ~ "/" ~ md);
        }
    }

    void main(string[] args)
    {
    }

--------------


To reproduce:
    $ dmd main.d

Output:
    /Library/D/dmd/src/phobos/std/file.d(3102): Error: module map is in file
'std/map.d' which cannot be read

--
Nov 11 2015