Skip to content

Conversation

@emilienlemaire
Copy link

As of today this PR only allows the parsing of those cases, the codegen is to be checked

@lefessan lefessan added the MF-AIX This issue is specific to the use of GnuCOBOL on code for MF on AIX label Nov 25, 2025
Copy link
Collaborator

@GitMensch GitMensch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've took 20 minutes to check the dialect support.

Please adjust the comments/valuas as noted and add cobc/Changelog and config/Changelog to your files..

Please also add runtime tests that show what you see on MF - and that GC with the new option has the same result.

record-contains-depending-clause: obsolete
defaultbyte: none # "not specifically defined in Standard COBOL"
picture-l: unconformable
odo-in-redefines: unconformable # to be checked
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xopen is only stricter than cobol85+amendment, so that's unconformable

record-contains-depending-clause: obsolete
defaultbyte: 0
picture-l: ok
odo-in-redefines: unconformable # to be checked
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked: unconformable

record-contains-depending-clause: unconformable
defaultbyte: 0 # not verified yet, but likely to be as IBM
picture-l: unconformable
odo-in-redefines: unconformable # to be checked
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked, unconformable

record-contains-depending-clause: unconformable
defaultbyte: " "
picture-l: unconformable
odo-in-redefines: warning
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the warning is only raised when compiled with "cautions enabled" - so it should be "ok" here (and a possible cobc_acu wrapper will take the necessary -a parameter and translate it which will include -fodo-in-redefines=warning)

... but for larger-redefines it should actually be warning - please adjust that when changing this file

record-contains-depending-clause: unconformable
defaultbyte: 0 # not verified, but likely like IBM
picture-l: unconformable
odo-in-redefines: unconformable # to be checked
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't found anything about it in its COBOL Reference Guide [that's in windows HLP format...] it has some rules on OCCURS but doesn't specify anything between that and REDEFINES.

In any case that would be # not verified, but likely like IBM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MF-AIX This issue is specific to the use of GnuCOBOL on code for MF on AIX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants