We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Parser does not check every usage/picture combination to report errors where needed.
To Reproduce (Type)Cobol code that cause the bug : (if any)
IDENTIFICATION DIVISION. PROGRAM-ID. TCOMFL06. DATA DIVISION. WORKING-STORAGE SECTION. 01 var16 PIC 9(4) INDEX. 01 var20 PIC 9(4) POINTER. 01 var21 PIC 9(4) POINTER-32. 01 var22 PIC 9(8) PROCEDURE-POINTER. 01 var23 PIC 9(4) FUNCTION-POINTER. PROCEDURE DIVISION. GOBACK . END PROGRAM TCOMFL06.
All those data declarations are forbidden by IBM compiler (despite the fact that the lengths match). However our parser does not emit any diagnostic.
Expected behavior One diagnostic (error) per line indicating that the PICTURE is forbidden.
Technical Similar checks are already done in CrossChecker, see
TypeCobol/TypeCobol/Compiler/Diagnostics/CrossChecker.cs
Lines 851 to 857 in faf22c0
How to test automatically Standard test
The text was updated successfully, but these errors were encountered:
WI #2611 Add diagnostic for invalid usage/picture combinations
b83844f
WI #2611 Add diagnostic for invalid usage/picture combinations (#2613)
0053131
fm-117
Successfully merging a pull request may close this issue.
Describe the bug
Parser does not check every usage/picture combination to report errors where needed.
To Reproduce
(Type)Cobol code that cause the bug : (if any)
All those data declarations are forbidden by IBM compiler (despite the fact that the lengths match). However our parser does not emit any diagnostic.
Expected behavior
One diagnostic (error) per line indicating that the PICTURE is forbidden.
Technical
Similar checks are already done in CrossChecker, see
TypeCobol/TypeCobol/Compiler/Diagnostics/CrossChecker.cs
Lines 851 to 857 in faf22c0
How to test automatically
Standard test
The text was updated successfully, but these errors were encountered: