[Issue 14349] New: String imports with subpaths don't work on Windows

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 27 09:59:04 PDT 2015


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 at puremagic.com
          Reporter: thecybershadow at 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"))

--


More information about the Digitalmars-d-bugs mailing list