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: nob...@puremagic.com
        ReportedBy: deadal...@gmail.com


--- Comment #0 from deadalnix <deadal...@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: -------

Reply via email to