rpg_argument_copy.zig, rpg_eval.zig, rpg_source_calls_emit.zig: a character field copied to a larger CONST character parameter of a program call #752
Loading…
Reference in a new issue
No description provided.
Delete branch "lc2k"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rpg_argument_copy.zig, rpg_eval.zig, rpg_source_calls_emit.zig: a character field copied to a larger CONST character parameter of a program call
cmdexc(G: 20)(dict calls2 statement 70:char(3000) constandpacked(15:5) const) stoppedat type_inference / operation 75 in the argument setup. The literal 20 was already read; the
first argument was not. The compiler copies a character field G of 20 bytes to a
temporary of 3000 bytes the way it copies a character literal (program-char): the value is
stored at the start of the temporary, the other 2980 bytes are blanked, and the address of the
temporary is passed with no retag. The only difference is the value:
29 F 0 TY(the field readwhole) in place of
27 LIT.rpg_argument_copy.characterreads both. The fact iscopied_character_argument_v1, textCOPY_REF_CHAR_FIELD(FROM S284, LENGTH 20, WIDTH 3000); the literal's text is unchanged. Theparameter width goes up to 32767.
(
rpg_evalbuiltin), as it is for a literal.char(3000) constfor the parameter.cmdexc(G: 20)emitsCMDEXC(CMDEXC_00284: 20);with*n char(3000) const;and*n packed(15:5) const;. Still open in dict calls2:cmdexc(G: %len(G))(statement 72, an expressionfor the packed parameter) and
xpgm2(R.a: R.b)(76, subfields of a data structure).Gates
e2c07c63818df700c197