mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
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.
3 lines
119 B
Plaintext
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
|