z390development / z390

z390 Portable Mainframe Assembler and Emulator Project
GNU General Public License v2.0
39 stars 15 forks source link

zCobol compiles incur "actr limit exceeded" errors #578

Open abekornelis opened 1 month ago

abekornelis commented 1 month ago

This happens on fields defined as X(nnn) with an initial value that contains an ampersand character. The logic is flawed: the ampersands in the literal need to be doubled up for the assembly to work okay, but the added ampersand is coded as '&&' which still is two ampersands. The additional ampersand caused macro WS.MAC to go into a loop.

Please fix the issue by unduplicating any literals inside the macro that contain incorrectly duplicated ampersands within a literal string.