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
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.
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?
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