浏览代码

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

git-svn-id: branches/debug_eh@42194 -
Jonas Maebe 6 年之前
父节点
当前提交
d0be4f11b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncgflw.pas

+ 1 - 1
compiler/ncgflw.pas

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