Issue 6554 - windows case insensitive imports
Summary: windows case insensitive imports
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-08-25 02:43 UTC by bearophile_hugs
Modified: 2017-07-03 00:18 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2011-08-25 02:43:17 UTC
This code:

import std.bigint;
void main() {
    import std.bigInt;
}


DMD 2.055head gives this error:

test.d(3): Error: module std.bigint from file ...\src\phobos\std\bigInt.d conflicts with another module bigint from file ...\src\phobos\std\bigint.d


While this code compiles with no errors:

import std.stdio;
void main() {
    import std.stdio;
}


I think those cases can't be both correct.
Comment 1 Martin Nowak 2012-02-16 19:33:54 UTC
import std.bigint;
import std.bigInt;

Will apparently give different module names to the same disk files.
Comment 2 Vladimir Panteleev 2017-07-03 00:18:30 UTC
The error message is now much better:

test.d(4,12): Error: module std.bigint from file C:\...\std\bigInt.d must be imported with 'import std.bigint;'

so I assume this can now be closed.