Files
mercury/tests/invalid/sub_b.err_exp
Fergus Henderson 147e83824c Fix a bug reported by Warwick Harvey <wharvey@cs.monash.edu.au>
Estimated hours taken: 3.5

Fix a bug reported by Warwick Harvey <wharvey@cs.monash.edu.au>
where importing a nested module without first importing the
parent module resulted in a software error when building the
dependencies.

compiler/modules.m:
	Change a call to `map__det_insert' into `map__set',
	to avoid a `map__det_insert failed' error,
	and add some detailed comments explaining why.

tests/invalid/Mmakefile:
tests/invalid/sub_a.m:
tests/invalid/sub_b.m:
tests/invalid/sub_b.err_exp:
tests/invalid/sub_c.m:
tests/invalid/sub_c.err_exp:
	Add a couple of test cases.
1998-09-24 19:11:42 +00:00

5 lines
186 B
Plaintext

sub_b.m:012: In module `sub_b':
sub_b.m:012: error in `import_module' declaration:
sub_b.m:012: module `sub_a:sub1' is inaccessible.
For more information, try recompiling with `-E'.