https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110865
--- Comment #3 from CVS 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:8a47474f2cf48837d6adf4a1232a89fd398ca7fa commit r14-2892-g8a47474f2cf48837d6adf4a1232a89fd398ca7fa Author: Gaius Mulley <gaiusm...@gmail.com> Date: Tue Aug 1 01:42:16 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. Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>