diff --git a/compiler/pdecl.pas b/compiler/pdecl.pas index b2f776c848..2cae4ca756 100644 --- a/compiler/pdecl.pas +++ b/compiler/pdecl.pas @@ -728,6 +728,7 @@ implementation hdef:=nil; first:=true; had_generic:=false; + storetokenpos:=Default(tfileposinfo); repeat defpos:=current_tokenpos; istyperenaming:=false; diff --git a/compiler/ptype.pas b/compiler/ptype.pas index 5a39b5c815..319861107b 100644 --- a/compiler/ptype.pas +++ b/compiler/ptype.pas @@ -1577,6 +1577,7 @@ implementation current_genericdef:=nil; current_specializedef:=nil; + olddef:=nil; is_func:=(token=_FUNCTION); consume(token); diff --git a/compiler/symdef.pas b/compiler/symdef.pas index 57d60681d9..e37b26dde3 100644 --- a/compiler/symdef.pas +++ b/compiler/symdef.pas @@ -6763,6 +6763,7 @@ implementation include(pno,pno_showhidden); {$endif EXTDEBUG} s:=''; + rn:=''; if proctypeoption=potype_operator then begin for t:=NOTOKEN to last_overloaded do