Files
mercury/tests/hard_coded/reuse_array.exp2
Peter Wang 8f3979732e Fix some problems uncovered when trying to build the compiler with
Branches: main

Fix some problems uncovered when trying to build the compiler with
--structure-reuse enabled, include bug #188.

compiler/ctgc.selector.m:
	Prevent a compiler abort when compiling hash_table.m with structure
	reuse enabled.  The sharing annotation for array.unsafe_svset somehow
	causes selector_subsumed_by_2 to try to retrieve the nth subtype of a
	type variable.  I believe the annotation is not to blame, by the test
	case below.

compiler/structure_reuse.versions.m:
	Don't try to reuse cells when constructing terms within
	from_ground_term_construct scopes.

	Add a sanity check to unification_set_reuse.

library/array.m:
	Fix problematic sharing annotations.

tests/hard_coded/Mmakefile:
tests/hard_coded/reuse_array.exp:
tests/hard_coded/reuse_array.exp2:
tests/hard_coded/reuse_array.m:
	Add test case for array.unsafe_svset sharing annotation.
2011-05-03 04:31:19 +00:00

3 lines
119 B
Plaintext

[struct(1, 999), struct(1, 999), struct(1, 999), struct(3, 999), struct(1, 999)]
3 distinct addresses - reuse detected