[Bug modula2/117371] [14/15 Regression] type incompatibility between ‘INTEGER’ and ‘CARDINAL’

2024-11-15 Thread ludovic--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371 --- Comment #6 from Ludovic Brenta --- Thanks for the fix but now I am curious: is K not a constant inside the outer loop? i.e. is it allowed to assign to K? (In Ada, FOR loops implicitly declare the so-called "loop parameter", a constant whose

[Bug modula2/117371] [14.2 Regression] type incompatibility between ‘INTEGER’ and ‘CARDINAL’

2024-11-01 Thread ludovic--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371 --- Comment #2 from Ludovic Brenta --- The trigger for the bug is the "BY k" in the third loop at line 20. Removing these words removes the error reported (but obviously makes the program less efficient). -- Ludovic Brenta.

[Bug modula2/117371] [14.2 Regression] type incompatibility between ‘INTEGER’ and ‘CARDINAL’

2024-10-30 Thread ludovic--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371 --- Comment #1 from Ludovic Brenta --- And it just occurred to me that, when m and k are declared INTEGER, perhaps the call to WriteCard (k, 1) should also be flagged as an error?

[Bug modula2/117371] New: [14.2 Regression] type incompatibility between ‘INTEGER’ and ‘CARDINAL’

2024-10-30 Thread ludovic--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371 Bug ID: 117371 Summary: [14.2 Regression] type incompatibility between ‘INTEGER’ and ‘CARDINAL’ Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: norm