Bug 19266 – Some source files names are no longer accepted
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2018-09-26T07:18:40Z
Last change time
2018-10-06T16:22:02Z
Keywords
pull
Assigned to
No Owner
Creator
Rainer Schuetze
Comments
Comment #0 by r.sagitario — 2018-09-26T07:18:40Z
dmd can no longer read files from a network share:
dmd \\network\share\test.d
...
Error: module `test` is in file '\\network\share\test.d' which cannot be read
You can also no longer pass in file names with the extension long file prefix:
dmd \\?\c:\tmp\test.d
...
Error: module `test` is in file '\\?\c:\tmp\test.d' which cannot be read
Redirecting some output to special devices fails, too:
dmd \\?\c:\tmp\test.d -deps nul:
...
Error: invalid file name 'nul:'
Introduced in dmd 2.078 by adding prefix \\?\ to filenames unconditionally.
This can also confuse generic file tracking for dependency generation as used by msbuild.