[m-users.] Compiler bug
Peter Wang
novalazy at gmail.com
Wed Feb 9 10:38:13 AEDT 2022
On Tue, 08 Feb 2022 12:55:08 +0100 Volker Wysk <post at volker-wysk.de> wrote:
> Hello.
>
> I've run into a compiler bug. The message repeats itself some more times.
> It's like this:
>
> Uncaught Mercury exception:
> Software Error: map.lookup: key not found
> Key Type: parse_tree.prog_data.class_id
> Key Value: class_id(unqualified("pagename"), 1)
> Value Type: hlds.hlds_class.hlds_class_defn
> ** Error making `Mercury/cs/attachments.c'.
> Uncaught Mercury exception:
> Software Error: map.lookup: key not found
> Key Type: parse_tree.prog_data.class_id
> Key Value: class_id(unqualified("pagename"), 1)
> Value Type: hlds.hlds_class.hlds_class_defn
>
> What does this say about the cause of the error? I assume that my program is
> faulty and that it would compile if it were correct.
Perhaps, but any time the compiler aborts is a compiler bug.
> Shall I send you (the Mercury team) my program so you can reproduce and fix
> the problem?
You can create a bug report at https://bugs.mercurylang.org/
Ideally you could isolate the problem to a small test case, but as long as
the program is not huge it should be okay.
Peter
More information about the users
mailing list