[Issue 2106] New: export class doesn't affect, what is exported
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 14 00:58:53 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2106
Summary: export class doesn't affect, what is exported
Product: D
Version: 2.013
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: link-failure, spec
Severity: major
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: the.yossarian at gmail.com
the export modifier on class doesn't work as excepted.
export class A { export public void function(); }
export class B : A { public void function2(); }
this code exports ONLY A.function(); ( i checked DLL with objdump )
the following throws undefined error when linking:
B b = new B();
A a = cast(A)b;
Error 42: Symbol Undefined _D4test1A1A7__ClassZ
.....
--
More information about the Digitalmars-d-bugs
mailing list