Bug 11802 – Wrong vtbl order for extern(C++) classes with overloaded functions on win32

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-12-22T08:43:00Z
Last change time
2013-12-30T22:35:08Z
Keywords
pull, wrong-code
Assigned to
yebblies
Creator
yebblies

Comments

Comment #0 by yebblies — 2013-12-22T08:43:20Z
With MSVC/DMC, overloaded virtual functions within a class are grouped in the vtbl, in reversed order. We need to match that. http://stackoverflow.com/questions/3243716/order-of-overloaded-methods-in-the-vtable-on-win32
Comment #1 by yebblies — 2013-12-22T08:48:55Z
Comment #2 by github-bugzilla — 2013-12-30T22:34:50Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0256f3373ec29adba1bce4899a9249deaa054d95 Fix Issue 11802 - Wrong vtbl order for extern(C++) classes with overloaded functions on win32 https://github.com/D-Programming-Language/dmd/commit/19a00201613c549521b9503cc3d566ed92e91528 Merge pull request #3010 from yebblies/issue11802 [DDMD] Issue 11802 - Wrong vtbl order for extern(C++) classes with overloaded functions on win32