https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120389
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:895a8abad245365940939911e3d0de850522791e commit r16-832-g895a8abad245365940939911e3d0de850522791e Author: Gaius Mulley <gaiusm...@gmail.com> Date: Thu May 22 22:03:22 2025 +0100 PR modula2/120389 ICE if assigning a constant char to an integer array This patch fixes an ICE which occurs if a constant char is assigned into an integer array. The fix it to introduce type checking in M2GenGCC.mod:CodeXIndr. gcc/m2/ChangeLog: PR modula2/120389 * gm2-compiler/M2GenGCC.mod (CodeXIndr): Check to see that the type of left is assignment compatible with the type of right. gcc/testsuite/ChangeLog: PR modula2/120389 * gm2/iso/fail/badarray3.mod: New test. Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>