Skip to content

Conversation

@yutaro-sakamoto
Copy link
Contributor

This pull request adds a new option -Wconstant.
If thsi option is enabled, the compiler detects inconsistent MOVE statements.
The followings are examples.

       WORKING-STORAGE  SECTION.
       01  NUM   PIC   9(7) COMP-5.
       PROCEDURE        DIVISION.
           MOVE 10000000000 TO NUM.
       WORKING-STORAGE  SECTION.
       01  NUM   PIC   9.
       PROCEDURE        DIVISION.
           MOVE -1 TO NUM.

@yutaro-sakamoto yutaro-sakamoto merged commit 4074369 into opensourcecobol:develop Feb 14, 2024
@yutaro-sakamoto yutaro-sakamoto deleted the feat/Wconstant branch February 14, 2024 12:40
@yutaro-sakamoto yutaro-sakamoto mentioned this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant