Bug 10422 – Unable to implement a NVI interface

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2013-06-20T05:48:00Z
Last change time
2013-06-20T06:30:49Z
Assigned to
nobody
Creator
sergei.nosov

Comments

Comment #0 by sergei.nosov — 2013-06-20T05:48:58Z
I'm trying to compile a very simple interface interface Interface { public final int f() {return do_f();} private int do_f(); } and get a rdmd extest.d /tmp/.rdmd-1000/rdmd-extest.d-2D0F68D708BAD881E0A2B251239A887D/objs/extest.o: In function `_D6extest9Interface1fMFZi': extest.d:(.text._D6extest9Interface1fMFZi+0x4d): undefined reference to `_D6extest9Interface4do_fMFZi' collect2: ld returned 1 exit status --- errorlevel 1 According to TDPL (and, well, common sense) this should work, but doesn't (dmd v2.063.2).
Comment #1 by andrej.mitrovich — 2013-06-20T06:30:49Z
*** This issue has been marked as a duplicate of issue 4542 ***