http://d.puremagic.com/issues/show_bug.cgi?id=8599
Summary: Link time error when class's method are defined
without body and nothing is abstract
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from deadalnix <[email protected]> 2012-08-29 12:52:57 PDT ---
The sample code is the simplest ever :
class A {
void foo();
}
This will cause the error :
classfail.o:(.rodata+0x50): undefined reference to `_D9classfail1A3fooMFZv'
when compiling with dmd 2.060
declaring A or foo as abstract fix the problem. abstract should be deducted
from code or compilation should fail before linking stage.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------