[Issue 15071] filenames and module names with case-insensitive HFS+

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 12 00:34:36 PDT 2016


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

Steve Biedermann <steve.biedermann.privat at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steve.biedermann.privat at gma
                   |                            |il.com

--- Comment #7 from Steve Biedermann <steve.biedermann.privat at gmail.com> ---
The same issue occurs on windows.

If you misstype the import, you get link errors instead of dmd import errors.

e.g.:

main.d:
import Bug;

void main()
{
  Bug b = new Bug();
  b.print("test");
}


bug.d:
import std.stdio;

public class Bug {
  void print(string str) {
    writeln(str);
  }
}

compiled with:
dmd main.d

output:
OPTLINK (R) for Win32  Release 8.00.17                                          
Copyright (C) Digital Mars 1989-2013  All rights reserved.                      
http://www.digitalmars.com/ctg/optlink.html                                     
main.obj(main)                                                                  
 Error 42: Symbol Undefined _D3Bug3Bug7__ClassZ                                 
main.obj(main)                                                                  
 Error 42: Symbol Undefined _D3Bug12__ModuleInfoZ                               
--- errorlevel 2

--


More information about the Digitalmars-d-bugs mailing list