Open theplasmastorm opened 5 years ago
More generally, if a Repository structure contains a group, and that group includes a second group (as reference to a separate structure), GodeGen fails to recognize any subsequent fields in the first group.
For example, the following structures would cause an error:
Structure GPCNEW2 DBL ISAM
Field FLD_Z Type ALPHA Size 6
Structure GPCNEW DBL ISAM
Group GRP_1A Type ALPHA
Group STRUCT_2E Reference GPCNEW2 Type ALPHA
Field FLD_3E Type ALPHA Size 6
Endgroup
To reproduce, load these structures (gpcnew.txt) into a Repository:
dbr RPS:rpsutl -i gpcnew.txt -ia
Then run CodeGen with any template, using the GPCNEW structure:
codegen -s GPCNEW -t cs_class
The GPC structure of XFPL test cannot be codegen'd because the structure has nested groups, and inside one of the nested groups is a field it cannot see.