Browse Source

* correctly set the defowner of the exception symtable to the surrounding routine as suggested by Blaise.ru

git-svn-id: trunk@48760 -
svenbarth 4 năm trước cách đây
mục cha
commit
c7f4be71dc
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      compiler/pstatmnt.pas

+ 1 - 0
compiler/pstatmnt.pas

@@ -991,6 +991,7 @@ implementation
                                sym:=clocalvarsym.create('$exceptsym',vs_value,ot,[]);
                             end;
                           excepTSymtable:=tstt_excepTSymtable.create;
+                          excepTSymtable.defowner:=current_procinfo.procdef;
                           excepTSymtable.insert(sym);
                           symtablestack.push(excepTSymtable);
                        end