Bug 15319 – [REG2.069] module map is in file std/map.d which cannot be read
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-11-11T15:12:04Z
Last change time
2020-03-21T03:56:38Z
Assigned to
No Owner
Creator
ponce
Comments
Comment #0 by aliloko — 2015-11-11T15:12:04Z
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