[Issue 4242] New: ICE(module.c): module naming conflict in subfolder
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 27 15:06:43 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4242
Summary: ICE(module.c): module naming conflict in subfolder
Product: D
Version: 2.041
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-05-27 15:06:39 PDT ---
Reported by Matthias.
-----
The dmd compiler v2.046 produces correct output ("Error: module test from file
xxx.d conflicts with another module test from file yyy.d"), if multiple
placement of same module identifier are in the root of the project, however it
crashes, when the files are in a subfolder and does not display a proper error
message.
The output is:
Assertion failure: 'mprev' on line 641 in file 'module.c'
Test case:
--main.d--
import std.stdio;
import folder.File1;
import folder.File2;
int main(char[][] args)
{
writefln(file2);
return 0;
}
--folder\File1.d--
module folder;
const char[] file1 = "File1";
--folder\File2.d--
module folder;
const char[] file2 = "File2";
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list