[Issue 12423] New: extern(Windows) interfaces with -m64 broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 20 03:58:18 PDT 2014
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: nobody at puremagic.com
ReportedBy: johnch_atms at hotmail.com
--- Comment #0 from John Chapman <johnch_atms at hotmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list