[Issue 23814] [Codegen] Calling member function of extern(C++) class with multiple inheritance doesn't preserve the EBX register in some cases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 3 13:34:24 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23814

--- Comment #4 from naydef <naydef at abv.bg> ---
I'm using DMD64 D Compiler v2.102.2 on Linux. Compiling with: "dmd app.d -m32"

I see you check func4, while my example code calls func1.
Use the second example code. You can use a debugger and break where func1 is
called in _Dmain, step into the function and you'll see the usage of EBX
register in a function called _THUNK0, which at the end jumps to
_ZN9MainClass5func1Ev.

--


More information about the Digitalmars-d-bugs mailing list