Files
mercury/tests/hard_coded/big_array_from_list.exp
Julien Fischer e7b8fe54a7 Fix a bug reported by Michael Day.
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.
2007-08-29 02:53:13 +00:00

2 lines
18 B
Plaintext