Bug 6170 – Undefined reference for methods without body implemented in derived class

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
Linux
Creation time
2011-06-17T04:47:00Z
Last change time
2012-01-29T20:10:49Z
Assigned to
nobody
Creator
mathias.baumann

Attachments

IDFilenameSummaryContent-TypeSize
1001bug.dTestcasetext/plain108

Comments

Comment #0 by mathias.baumann — 2011-06-17T04:47:46Z
Created attachment 1001 Testcase If you have a method without body in class A and derive from that class to implement that method, you'll get an undefined reference. I am getting bug.o:(.rodata+0x38): undefined reference to `_D3bug4Base4testMFZv' collect2: ld returned 1 exit status --- errorlevel 1 for the attached testcase.
Comment #1 by yebblies — 2012-01-29T20:10:49Z
*** This issue has been marked as a duplicate of issue 2051 ***