Branch: refs/heads/master
Revision: da7b6b2
Author: vasslitvinov
Log Message:
Merge pull request #17335 from vasslitvinov/promotion-parenless-12736
Handle promoted calls to parenless functions
Resolves #12736.
With this change, promoted calls to parenless functions
are handled properly.
While this corner case could be handled more easily by replacing
the INT_ASSERT (that was tripped over) with an immediate return
from addSetIteratorShape(), the current code has the advantage
of preserving the shape of the promotion leader.
Other implementation specifics are described in comments.
r: @e-kayrakli
Modified Files:
A test/functions/promotion/issue-12736-error1.chpl
A test/functions/promotion/issue-12736-error1.good
A test/functions/promotion/issue-12736-error2.chpl
A test/functions/promotion/issue-12736-error2.good
A test/functions/promotion/issue-12736-error3.chpl
A test/functions/promotion/issue-12736-error3.good
A test/functions/promotion/issue-12736-error4.chpl
A test/functions/promotion/issue-12736-error4.good
A test/functions/promotion/issue-12736-error5.chpl
A test/functions/promotion/issue-12736-error5.good
A test/functions/promotion/issue-12736-ok.chpl
A test/functions/promotion/issue-12736-ok.execopts
A test/functions/promotion/issue-12736-ok.good
M compiler/resolution/wrappers.cpp
Compare: https://github.com/chapel-lang/chapel/compare/a3a7beb08424...da7b6b2f7fa7