mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 5
Branches: main
Fix Mantis bug 103.
compiler/lco.m:
Detect the special case whose incorrect treatment represented the bug,
and modify the program transformation to leave the predicate unchanged
even in that case.
Allow the transformation to work for one more type of cons_tag:
since single_functor_tag is a special case of unshared_tag, there
is no reason not to allow it.
Add some conditionally-enabled debugging code.
Rename predicates to avoid ambiguities.
Move a constant field from the updateable lco_into to the constant
lco_const_info.
tests/hard_coded/bug103.{m,exp}
A new test case for the bug.
tests/hard_coded/Mmakefile:
tests/hard_coded/Mercury.options:
Enable the new test case, and invoke it with the right options.
2 lines
24 B
Plaintext
2 lines
24 B
Plaintext
cons(42, cons(42, nil))
|