rpg_source_decl_emit.zig: a FILL at the tail of a chunked structure initial value completes the value (lane Lgd2) #773
Loading…
Reference in a new issue
No description provided.
Delete branch "lgd2"
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?
Cause (public twin lr1-af-i10-200-blank)
dcl-ds d; a int(10) dim(200) inz(1); c1 char(10) inz(*blank); end-ds;is initialized by thecompiler as
CHARACTER[400],CHARACTER[400]andFILL[10] = X'40'at offsets 0, 400 and 800.rpg_source_decl_emit.initialassembled onlybyteschunks ("the chunks of one long initial value"),so the FILL at the tail left the value unknown and the structure was refused: "no declaration of
symbol 253: the initial value is not proved" (
failUndeclared s01), and all three statements thatname it failed. This is a public instance of "statement names a field whose declaration failed".
The zoned twin lr1-af-z50-200-blank has no FILL tail and was clean.
Rule
A
fillstore of width w that follows the chunks contiguously counts as w bytes of that value.Test:
src/rpg_lgd_test.zig(red before: SOURCERER-FAIL; green: the subfieldA_00253_F0 int(10) dim(200) inz(1)andA_00253_G800 char(10), the three statements emitted).Debug sweep over all 562 stripped saves of
src/testdata: only lr1-af-i10-200-blank changes.Battery lgd2/long-start
31 cases for the coordinator to capture (
requests/lgd2/long-start): non-invariant and hexadecimalstart values of 50/90/150 bytes, start values beyond twelve lines, a whole mixed structure, arrays of
distinct start values, varchar and based. Not captured by the lane.