소스 검색

* tarrayconstructornode: force conversion to set if there's a range node in the tree

git-svn-id: trunk@36101 -
svenbarth 8 년 전
부모
커밋
8f4ef91efb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/nld.pas

+ 1 - 1
compiler/nld.pas

@@ -1031,7 +1031,7 @@ implementation
         Do this only if we didn't convert the arrayconstructor yet. This
         is needed for the cases where the resultdef is forced for a second
         run }
-        if not(allow_array_constructor) then
+        if not allow_array_constructor or has_range_node then
          begin
            hp:=tarrayconstructornode(getcopy);
            arrayconstructor_to_set(tnode(hp));