[Issue 3655] New: Virtual functions without bodies are not optimized away.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 27 04:12:29 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3655

           Summary: Virtual functions without bodies are not optimized
                    away.
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: e.insafutdinov at gmail.com


--- Comment #0 from Eldar Insafutdinov <e.insafutdinov at gmail.com> 2009-12-27 04:12:27 PST ---
This is compiled fine, as final method without a body is optimized away:

class Boo
{
    final void foo();
}

However this does not:

class Boo
{
    void foo();
}

linker fails with:

main.o:(.rodata+0x194): undefined reference to `_D4main3Boo3fooMFZv'

This might be because function is put into vtable. Is it easy to fix?

-- 
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