Skip to content

WI #2520 Check USAGE compatibility between EVALUATE and WHEN#2835

Merged
efr15 merged 8 commits into2520-parser-does-not-check-conditions_2from
2520-parser-does-not-check-conditions_3
Mar 4, 2026
Merged

WI #2520 Check USAGE compatibility between EVALUATE and WHEN#2835
efr15 merged 8 commits into2520-parser-does-not-check-conditions_2from
2520-parser-does-not-check-conditions_3

Conversation

@efr15
Copy link
Copy Markdown
Contributor

@efr15 efr15 commented Feb 25, 2026

Fixes #2520

There is an issue with USAGE OBJECT REFERENCE. The diagnostic below is wrong:
Line 23[11,30] <27, Error, Syntax> - Syntax error : A group item cannot be empty. Add children, picture or valid usage (INDEX, COMP-1, COMP-2, POINTER, POINTER-32, PROCEDURE-POINTER or FUNCTION-POINTER). OffendingSymbol=[11,30:VAR-OBJECT-REFERENCE]
OBJECT REFERENCE should be part of the "stand alone" usages (see new issue created #2836)

@efr15 efr15 requested review from Finou1404 and fm-117 February 25, 2026 10:58
@efr15 efr15 self-assigned this Feb 25, 2026
Comment thread TypeCobol/Compiler/Diagnostics/CrossChecker.cs
Comment thread TypeCobol/Compiler/Diagnostics/CrossChecker.cs Outdated
@efr15 efr15 requested a review from fm-117 February 26, 2026 13:12
Comment thread TypeCobol/Compiler/Diagnostics/CrossChecker.cs Outdated
@efr15 efr15 requested a review from fm-117 February 27, 2026 09:02
@efr15 efr15 requested a review from fm-117 February 27, 2026 11:03
@efr15 efr15 merged commit 0afbae1 into 2520-parser-does-not-check-conditions_2 Mar 4, 2026
@efr15 efr15 deleted the 2520-parser-does-not-check-conditions_3 branch March 4, 2026 11:07
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.

3 participants