From 114dfe41a3f0c361686d6238fe0200e8f1867e0a Mon Sep 17 00:00:00 2001 From: svenbarth Date: Tue, 29 Sep 2015 12:56:01 +0000 Subject: [PATCH] Fix for Mantis #28741. pexpr.pas: * initialize srsym in the classrefdef case; it should not have let to problems, because it's only used if erroroutp1 is false which is only the case if the symbol is assigned, but better save then sorry... git-svn-id: trunk@31887 - --- compiler/pexpr.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/pexpr.pas b/compiler/pexpr.pas index 6fd9ca820b..9b6fd88bfc 100644 --- a/compiler/pexpr.pas +++ b/compiler/pexpr.pas @@ -2411,6 +2411,7 @@ implementation erroroutp1:=true; if token=_ID then begin + srsym:=nil; structh:=tobjectdef(tclassrefdef(p1.resultdef).pointeddef); if isspecialize then begin