Browse Source

* Replaced Illegal Expression error with Internal Error for
"getaddsub_for_incdec" since it should never logically reach this point

J. Gareth "Curious Kit" Moreton 2 months ago
parent
commit
b49d2f689f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/ninl.pas

+ 2 - 1
compiler/ninl.pas

@@ -5044,7 +5044,8 @@ implementation
              hpp := tcallparanode(tcallparanode(left).right).left;
              tcallparanode(tcallparanode(left).right).left := nil;
              if assigned(tcallparanode(tcallparanode(left).right).right) then
-               CGMessage(parser_e_illegal_expression);
+               { A syntax error should have already been raised }
+               InternalError(2025050601);
            end
          else
            begin