diff --git a/compiler/x86/rax86int.pas b/compiler/x86/rax86int.pas index 129556bba4..8a33568106 100644 --- a/compiler/x86/rax86int.pas +++ b/compiler/x86/rax86int.pas @@ -984,7 +984,7 @@ Unit Rax86int; end; fieldvarsym : begin - tempstr:='SELF.'+tempstr; + tempstr:=upper(tdef(sym.owner.defowner).GetTypeName)+'.'+tempstr; end; else Message(asmr_e_wrong_sym_type);