www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14349] New: String imports with subpaths don't work on Windows

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

          Issue ID: 14349
           Summary: String imports with subpaths don't work on Windows
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

echo "pragma(msg, import(\"a/b.txt\"));" > test.d
mkdir a
echo aoeu > a/b.txt
dmd -o- -J. test.d

Works on Linux. On Windows, complains:

test.d(1): Error: file "a/b.txt" cannot be found or not in a path specified
with -J
test.d(1):        while evaluating pragma(msg, import("a/b.txt"))

--
Mar 27 2015