Files
mercury/tests/hard_coded/bug103.exp
Zoltan Somogyi dcc3d80a50 Fix Mantis bug 103.
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.
2011-03-08 07:37:45 +00:00

2 lines
24 B
Plaintext