[m-rev.] for post-commit review: construct initial module_and_imports directly

Julien Fischer jfischer at opturion.com
Mon Apr 22 15:54:43 AEST 2019


On Mon, 22 Apr 2019, Zoltan Somogyi wrote:

> On Mon, 22 Apr 2019 05:13:04 +0000 (UTC), Julien Fischer <jfischer at opturion.com> wrote:
>>> One of them (at least) is being triggered:
>>>
>>>    Uncaught Mercury exception:
>>>    Software Error: predicate
>>>    `parse_tree.modules.grab_imported_modules_augment'/10: Unexpected: bad
>>>    IntItems
>>>    Stack dump not available in this grade.
>>>
>>> I'll extract a test case for this one.
>>
>> Actually, you can ignore that one, it was caused by a foreign_type
>> pragma being present in a module interface.
>
> The mere presence of a foreign_type pragma in the interface
> does not cause an exception on my machine.

You probably don't have enough submodules present ;-)

> If you have a test
> case for which it does, then I would like to see it.

Attached, do:

    $ mmc --make lib12

to reproduce it.   The foreign_type in question is in the file seq.m.

Julien.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bad_items.tar.gz
Type: application/gzip
Size: 871 bytes
Desc: 
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20190422/57f35244/attachment.gz>


More information about the reviews mailing list