[Issue 8599] New: Link time error when class's method are defined without body and nothing is abstract
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 29 12:53:00 PDT 2012
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: nobody at puremagic.com
ReportedBy: deadalnix at gmail.com
--- Comment #0 from deadalnix <deadalnix at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list