Summary: Virtual functions without bodies are not optimized
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Eldar Insafutdinov <> 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:
------- You are receiving this mail because: -------

Reply via email to