https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120401
Bug ID: 120401
Summary: gcobol allows arithmetic on alphanumeric fields
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: cobol
Assignee: unassigned at gcc dot gnu.org
Reporter: simonsobisch at gnu dot org
Target Milestone: ---
A PIC XX. *> alphanumeric
B PIC XBX. *> alphanumeric-edited
C PIC 99.
COMPUTE B = C * C
COMPUTE A = C * C
should error, but compiles with gcobol
Same may be true with national/national-edited/utf8.