From 51c7a42e32362e8a8d0f930e10fc159aa049c866 Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 7 Aug 2012 07:43:49 +0000 Subject: [PATCH] codetools: workaround until CalculateBinaryOperator supports alias types git-svn-id: trunk@38195 - --- components/codetools/finddeclarationtool.pas | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/codetools/finddeclarationtool.pas b/components/codetools/finddeclarationtool.pas index dc4bf6285c..67b13651f1 100644 --- a/components/codetools/finddeclarationtool.pas +++ b/components/codetools/finddeclarationtool.pas @@ -5941,6 +5941,12 @@ var Params); // put result on stack ExprStack[StackPtr-1]:=ExprStack[StackPtr]; + + // ToDo: handle alias in CalculateBinaryOperator + // => Workaround: + if NewOperand.Desc<>ExprStack[StackPtr-1].Operand.Desc then + ExprStack[StackPtr-1].AliasType:=CleanFindContext; // reset alias type + dec(StackPtr); ExprStack[StackPtr].Operand:=NewOperand; end;