Explorar el Código

* "on" nodes inherit the exception catching state from the "try"

git-svn-id: branches/debug_eh@42194 -
Jonas Maebe hace 6 años
padre
commit
d0be4f11b8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/ncgflw.pas

+ 1 - 1
compiler/ncgflw.pas

@@ -633,7 +633,7 @@ implementation
             current_procinfo.CurrBreakLabel:=breakexceptlabel;
             current_procinfo.CurrBreakLabel:=breakexceptlabel;
           end;
           end;
 
 
-         flowcontrol:=[fc_inflowcontrol];
+         flowcontrol:=[fc_inflowcontrol]+trystate.oldflowcontrol*[fc_catching_exceptions];
          { on statements }
          { on statements }
          if assigned(right) then
          if assigned(right) then
            secondpass(right);
            secondpass(right);