Selaa lähdekoodia

* 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 kuukautta sitten
vanhempi
commit
b49d2f689f
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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