From cc855e065aea3b2d4f16087baf2abcee7fec44d6 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Tue, 26 Feb 2019 16:58:16 +0300 Subject: [PATCH] Ignore stray references for variables in Set instruction --- components/compiler/lineparser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/compiler/lineparser.cpp b/components/compiler/lineparser.cpp index 3f9d2e7903..1cfa70f733 100644 --- a/components/compiler/lineparser.cpp +++ b/components/compiler/lineparser.cpp @@ -506,6 +506,13 @@ namespace Compiler return true; } + if (code==Scanner::S_ref && mState==SetPotentialMemberVarState) + { + getErrorHandler().warning ("Ignoring stray explicit reference", loc); + mState = SetState; + return true; + } + if (code==Scanner::S_ref && mState==PotentialExplicitState) { mState = ExplicitState;