浏览代码

* 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 年之前
父节点
当前提交
daf13d8750
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
                       SetSegmentOverride(dest,src.opr.ref.segment);
                   end;
+                OPR_LOCAL:
+                  Message(asmr_e_no_local_or_para_allowed);
                 else
                   internalerror(2018030703);
               end;