[Issue 10422] New: Unable to implement a NVI interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 20 05:49:00 PDT 2013


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

           Summary: Unable to implement a NVI interface
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: sergei.nosov at gmail.com


--- Comment #0 from Sergei <sergei.nosov at gmail.com> 2013-06-20 05:48:58 PDT ---
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).

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