[Issue 382] New: Critical "Previous definition different" bug
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 27 12:57:27 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=382
Summary: Critical "Previous definition different" bug
Product: D
Version: 0.167
Platform: PC
OS/Version: Windows
Status: NEW
Severity: blocker
Priority: P1
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: boris.kolar at globera.com
Steps to reproduce:
1. Create 2 files (Site.d and Tools.d):
[Site.d]
module Site;
import Tools;
void test(List!(char) list) {}
[Tools.d]
module Tools;
struct List(T) {
interface A {}
}
int main(char[][] args) {
List!(char) list;
return 0;
}
2. Now compile using the following commands:
# dmd.exe -c Site.d
# dmd.exe -c Tools.d
# dmd.exe bug.exe Site.obj Tools.obj
... should report error "Previous definition different"
I market this bug as blocker, because I know of no workaround (at least one
that would work with compiling files one by one).
--
More information about the Digitalmars-d-bugs
mailing list