Branch: refs/heads/main
Revision: bbb1089
Author: dlongnecke-cray
Link: Fix internal error when calling a parenless method invocation by dlongnecke-cray · Pull Request #20072 · chapel-lang/chapel · GitHub
Log Message:
Merge pull request #20072 from dlongnecke-cray/internal-error-parenless-method
Fix internal error when calling a parenless method invocation (#20072)
Resolves #19945.
Fix a bug which caused calling the result of a parenless method
invocation to result in an internal error:
writeln(INFINITY());
This code now emits an error:
error: unresolved access of 'real(64)' by '()'
Which is consistent with the errors emitted when trying to call
a type that does not support the call operation.
TESTING
-
ALL
onlinux64
,standard
Reviewed by @mppf. Thanks!
Signed-off-by: David Longnecker dlongnecke-cray@users.noreply.github.com
Modified Files:
A test/expressions/calls/CallInfinity.chpl
A test/expressions/calls/CallInfinity.good
A test/expressions/calls/CallParenlessWithParens.chpl
A test/expressions/calls/CallParenlessWithParens.good
A test/expressions/calls/CallParenlessWithParensParam.chpl
A test/expressions/calls/CallParenlessWithParensParam.good
M compiler/resolution/postFold.cpp
Compare: https://github.com/chapel-lang/chapel/compare/7d9efe54d885...bbb1089a9063