mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 01:43:35 +00:00
Estimated hours taken: 8
Branches: main
Fix a bug reported by Michael Day.
compiler/ml_call_gen.m:
Do not introduce assignment statements that perform casts to (un)box
arguments of array types when the types of the LHS and RHS of such
assignments would be the same. This avoids situations where
tail call optimisation cannot be applied to procedures with array
arguments because the introduced assignments are added after the
recursive call(s).
tests/hard_coded/.cvsignore:
tests/hard_coded/Mercury.options:
tests/hard_coded/Mmakefile:
tests/hard_coded/big_array_from_list.{m,exp}:
Test case for the above bug.
2 lines
18 B
Plaintext
2 lines
18 B
Plaintext
NumElems = 600001
|