Thread overview
[Issue 6170] New: Undefined reference for methods without body implemented in derived class
Jun 17, 2011
Mathias Baumann
Jan 02, 2012
Leandro Lucarella
Jan 30, 2012
yebblies
June 17, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6170

           Summary: Undefined reference for methods without body
                    implemented in derived class
           Product: D
           Version: D1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: mathias.baumann@sociomantic.com


--- Comment #0 from Mathias Baumann <mathias.baumann@sociomantic.com> 2011-06-17 04:47:46 PDT ---
Created an attachment (id=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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6170


Leandro Lucarella <llucax@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1001|application/octet-stream    |text/plain
          mime type|                            |


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 30, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6170


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-01-30 15:10:49 EST ---
*** This issue has been marked as a duplicate of issue 2051 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------