https://d.puremagic.com/issues/show_bug.cgi?id=12423

           Summary: extern(Windows) interfaces with -m64 broken
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from John Chapman <[email protected]> 2014-03-20 03:58:17 
PDT ---
The following program when compiled on x64 Windows with -m64 will cause a stack
overflow at runtime:

extern(Windows):

interface Base {
  void test();
}

class Derived : Base {
  void test() {}
}

extern(D):

void main() {
  Base b = new Derived();
  b.test();
}

Changing "extern(Windows)" to "extern(C++)" or "extern(D)" makes the program
run without problems.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to