You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The added test times out during resolution.
Note: the same program compiles when a distinct array is created instead of
passing a slice:
var newnums = for i in 0..#nums.size-1 do nums[i+1];
tryit(newnums);
Contributed by: @cassella - thanks!
Review and merge: @vasslitvinov
Summary of Problem
Description:
The compiler hangs compiling this reduced reproducer.
This happens with and without LLVM. With --print-passes, it hangs for at least a minute here, increasing its memory consumption by ~150MB/s:
The same program written slightly differently takes about 9 seconds for the next phase, resolve.
(That slightly differently is creating and copying to a new smaller array instead of passing a slice:
)
Is this issue currently blocking your progress?
No. It was simple to work around by declaring a new array and copying elements manually.
Steps to Reproduce
Source Code:
Compile command:
chpl foo.chpl
Associated Future Test(s):
test/functions/resolution/recursive-call-with-reindexed-array-slice.chpl
#26377Configuration Information
The text was updated successfully, but these errors were encountered: