Branch: refs/heads/main
Revision: 5b92f98423e33bc02df8064b8000e00ac4eb9f05
Author: Michael Ferguson
Link: Add last resort to generic chpl__coerceMove by mppf · Pull Request #21036 · chapel-lang/chapel · GitHub
Log Message:
Add last resort to generic chpl__coerceMove
Follow-up to PR #20755. This PR adds pragma "last resort" to the generic chpl__coerceMove to get this code pattern working: var x:[1..10] unmanaged C? = nil The pragma "last resort" was already present on the corresponding chpl__coerceCopy. This resolves a problem building prep from CHAMPS. This PR also adds a small test showing the pattern that was failing to compile. Reviewed by @DanilaFe - thanks! - full local testing
Compare: Comparing 961ef2f6a3f7d652e034395b1c70052a87524a29...5b92f98423e33bc02df8064b8000e00ac4eb9f05 · chapel-lang/chapel · GitHub
Diff: https://github.com/chapel-lang/chapel/pull/21036.diff
Modified Files:
modules/internal/ChapelArray.chpl
Added Files:
test/classes/ferguson/check-init-array-classes-nil.chpl,test/classes/ferguson/check-init-array-classes-nil.good
Removed Files: