diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2023-08-01 01:42:16 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2023-08-01 01:42:16 +0100 |
commit | 8a47474f2cf48837d6adf4a1232a89fd398ca7fa (patch) | |
tree | 317ed728033c318f859a1a2b8e0bb7dd8815e1c6 /gcc/tree-cfg.cc | |
parent | a2f31d79ad623de6809b3cf2055483525f1903ab (diff) | |
download | gcc-8a47474f2cf48837d6adf4a1232a89fd398ca7fa.zip gcc-8a47474f2cf48837d6adf4a1232a89fd398ca7fa.tar.gz gcc-8a47474f2cf48837d6adf4a1232a89fd398ca7fa.tar.bz2 |
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 <gaiusmod2@gmail.com>
Diffstat (limited to 'gcc/tree-cfg.cc')
0 files changed, 0 insertions, 0 deletions