https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110865
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:860b0f0ef787f756c0e293671b4c4622dff63a79 commit r13-7679-g860b0f0ef787f756c0e293671b4c4622dff63a79 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Tue Aug 1 14:59:48 2023 +0100 PR modula2/110865 Unable to access copied const array This patch allows constants of an array type to be indexed. gcc/m2/ChangeLog: PR modula2/110865 * gm2-compiler/M2Quads.mod (BuildDesignatorArray): Rename t as type and d as dim. New variable result. Allow constants of an array type to be indexed. gcc/testsuite/ChangeLog: PR modula2/110865 * gm2/iso/pass/constvec.mod: New test. * gm2/iso/pass/constvec2.mod: New test. * gm2/iso/run/pass/constvec3.mod: New test. (cherry picked from commit 8a47474f2cf48837d6adf4a1232a89fd398ca7fa) Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>