Hi GnuCOBOL team,
if there is a REPLACE statement inside of a copy, the replacement in the program is not working correctly (nothing is replaced).
In comparison to other COBOL compilers this should work also with GNU COBOL.
Please take a look in the attached testcase while using the script tc1910.sh:
cobc -t tc1910.lst tc1910.cbl
cobc - x tc1910up.cob
./tc1910up
The tc1910up program only checks, if the REPLACE statement was executed successfully (should be inside of the list file) and shows a message at the end if the test was passed or not passed.
Please take a look
Kind regards
Sebastian
Similar to #831.
If you check the .i file generated with -g, you will see that the replacement is correctly performed during compilation, but not in the listing file.
So it can be closed.