Wrong code generation for static methods calls
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Static method shouldn't have any Self parameter. This is very confusing if you try to use VMT pointer in a static method.
# [29] O.GetVMT;
leal _O,%esi
pushl %esi
call _$$_TOBJECT_$$_GETVMT
# [30] tObject.GetVMT;
movl $VMT_PROGRAM$_TOBJECT,%esi
pushl %esi
call _$$_TOBJECT_$$_GETVMT
Additional information:
Reporter: Sergey Kosarevsky
EMail: netsurfer at au dot ru
Mantis conversion info:
- Mantis ID: 4351
- OS: WIN32
- Version: 1.0.6
- Fixed in version: 1.0.7