www.digitalmars.com         C & C++   DMDScript  

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


          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 puremagic.com
          Reporter: maxsamukha gmail.com

To reproduce, create this source tree:


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

Mar 28 2022