Browse Source

* print a "Cannot use local variable or parameters here" error (instead of
internal error) in case of expressions that add two local variables using the
[expr1[expr2]] syntax

git-svn-id: trunk@38514 -

nickysn 7 years ago
parent
commit
daf13d8750
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/x86/rax86int.pas

+ 2 - 0
compiler/x86/rax86int.pas

@@ -933,6 +933,8 @@ Unit Rax86int;
                     if src.opr.ref.segment<>NR_NO then
                     if src.opr.ref.segment<>NR_NO then
                       SetSegmentOverride(dest,src.opr.ref.segment);
                       SetSegmentOverride(dest,src.opr.ref.segment);
                   end;
                   end;
+                OPR_LOCAL:
+                  Message(asmr_e_no_local_or_para_allowed);
                 else
                 else
                   internalerror(2018030703);
                   internalerror(2018030703);
               end;
               end;