Ver Fonte

* ensure that flushpendingswitchesstate had been called before the start of replaying tokens

Sven/Sarah Barth há 8 meses atrás
pai
commit
d335ce60dd
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      compiler/scanner.pas

+ 4 - 0
compiler/scanner.pas

@@ -3721,6 +3721,10 @@ type
         { install buffer }
         replaytokenbuf:=buf;
 
+        { flushpendingswitchesstate should have been called }
+        if assigned(pendingstate.nextmessagerecord) then
+          internalerror(2024122901);
+
         { Initialize value of change_endian_for_replay variable }
         change_endian_for_replay:=change_endian;