[Bug modula2/114617] gm2 is unable to resolve const expression using relative operators ICE

2024-04-06 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114617 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug modula2/114617] gm2 is unable to resolve const expression using relative operators ICE

2024-04-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114617 --- Comment #4 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:4e3c8257304c55f2ebfb24bd6de3236bda0f054e commit r14-9823-g4e3c8257304c55f2ebfb24bd6de3236bda0f054e Author: Gaius Mulley Date:

[Bug modula2/114617] gm2 is unable to resolve const expression using relative operators ICE

2024-04-06 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114617 --- Comment #3 from Gaius Mulley --- With the patch the reported failure examples above pass: $ gm2 -g -c BasicFileSys.mod -I../../../../Sandpit/gm2-outside-tree-tests/build/source/m2pp/src/ -fsources Compiling: BasicFileSys.mod Pass 0:

[Bug modula2/114617] gm2 is unable to resolve const expression using relative operators ICE

2024-04-05 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114617 --- Comment #2 from Gaius Mulley --- Created attachment 57891 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57891=edit Proposed fix Here is a proposed fix which stores the result of the relop as a constant. The fix requires M2Quads to

[Bug modula2/114617] gm2 is unable to resolve const expression using relative operators ICE

2024-04-05 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114617 Gaius Mulley changed: What|Removed |Added Last reconfirmed||2024-04-06 Ever confirmed|0