https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120389
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:7dcb64479e0cc590641a505b8fe1fd542f22a38f commit r15-9980-g7dcb64479e0cc590641a505b8fe1fd542f22a38f Author: Gaius Mulley <gaiusm...@gmail.com> Date: Tue Jul 15 19:38:04 2025 +0100 [PATCH] 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. (cherry picked from commit 895a8abad245365940939911e3d0de850522791e) Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>