TUESDAY, SEPTEMBER 8, 2026
cobol
cobol: Re-enable CALL BY VALUE literal and update tests
cobol: Restores support for CALL BY VALUE with literals and adds new test cases.
This commit reintroduces the ability for the COBOL compiler to handle CALL BY VALUE arguments that are literals. To ensure correctness and compatibility, several new test cases have been added to cover various scenarios and platforms, addressing issues related to this functionality.
In Details
The parse_ante.h header was updated with a test for by_content_ok to allow literal arguments for CALL BY VALUE. New test files were added to cobol.dg/group2/ to cover PR126612 and related issues, ensuring proper handling across different COBOL standards and compiler implementations.
For Context
- CALL BY VALUE
- A method of passing arguments to a subroutine where the actual values of the arguments are passed, rather than their addresses.
- literal
- A source code representation of a fixed value, such as a number or a string.