https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120389
Bug ID: 120389
Summary: Assigning a CHAR to an INTEGER crashes the compiler
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: modula2
Assignee: gaius at gcc dot gnu.org
Reporter: belka at caraus dot de
Target Milestone: ---
Created attachment 61489
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61489&action=edit
-freport-bug output
Here is the source code:
```
MODULE M;
VAR X: ARRAY[1..5] OF INTEGER;
BEGIN
X[1] := 'c';
END M.
```
So it just declares an array of integers and assigns a character to an element.
Compiling this results in an ICE. Details are in the attachment.