Menu ▾ ▴

#739 MOVE LENGTH OF field of Typedef produces error at compile time

GC 3.x
accepted
5 - default
2022-12-31
2021-06-22
No

Hi GnuCOBOL team,

if you define a typdef with a pic x field and use it in combination with move length of syntax you got an error at compile time, that this field is not declared.

Please take a look in the attached testcase while using command:

cobc -x tc2016.cbl

Kind regards

Sebastian Steinweg
Easirun Europa GmbH

2 Attachments

Related

Discussion: Issue with types and constant entries

Discussion

  • Simon Sobisch

    Simon Sobisch - 2022-12-31
    • labels: --> cobc, TYPEDEF
    • status: open --> accepted
    • assigned_to: Simon Sobisch
    • Group: GC 3.1 --> GC 3.x
     
  • Simon Sobisch

    Simon Sobisch - 2022-12-31

    This would be fixed by removing the following lines on tree.c, but it makes the error message for [bugs:#740] even worse...

                /* ignore sub-items of typedefs */
                if (fld->parent != NULL && cb_field_founder (fld)->flag_is_typedef) {
                    continue;
                }
    
     

    Related

    Bugs: #740


Log in to post a comment.