ソースを参照

* don't warn about uninitialised open array out parameters when
only getting their length

git-svn-id: trunk@6904 -

Jonas Maebe 18 年 前
コミット
2f12e94947
1 ファイル変更2 行追加1 行削除
  1. 2 1
      compiler/ninl.pas

+ 2 - 1
compiler/ninl.pas

@@ -1701,7 +1701,8 @@ implementation
               in_length_x:
                 begin
                   if ((left.resultdef.typ=arraydef) and
-                      not is_special_array(left.resultdef)) or
+                      (not is_special_array(left.resultdef) or
+                       is_open_array(left.resultdef))) or
                      (left.resultdef.typ=orddef) then
                     set_varstate(left,vs_read,[])
                   else