diff --git a/compiler/scanner.pas b/compiler/scanner.pas index 81f8e521b4..d1c88aab8c 100644 --- a/compiler/scanner.pas +++ b/compiler/scanner.pas @@ -288,6 +288,12 @@ implementation if b then begin + { resolve all postponed switch changes } + if localswitcheschanged then + begin + aktlocalswitches:=nextaktlocalswitches; + localswitcheschanged:=false; + end; { turn ansistrings on by default ? } if (m_delphi in aktmodeswitches) then begin