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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Eldar Insafutdinov <[email protected]> 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: -------