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.