[Issue 22952] New: Compiler fails to find package.d modules via -mv map

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 28 18:43:20 UTC 2022


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

          Issue ID: 22952
           Summary: Compiler fails to find package.d modules via -mv map
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: maxsamukha at gmail.com

To reproduce, create this source tree:

  libsrc\
     package.d
  main.d


The contents of libsrc\package.d:

  module lib;


The contents of main.d:

  module main;
  import lib;

  void main() {}


Map 'lib' package to 'libsrc' folder and compile:

  dmd -i -mv=lib=libsrc main.d

main.d(3): Error: module `lib` is in file 'lib.d' which cannot be read

--


More information about the Digitalmars-d-bugs mailing list