[m-users.] Compiler bug

Volker Wysk post at volker-wysk.de
Wed Feb 9 17:36:26 AEDT 2022


Am Mittwoch, dem 09.02.2022 um 10:38 +1100 schrieb Peter Wang:
> 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.

I've tried it with the rotd-2022-02-07 version of the compiler now, and the
problem disappeared.

Cheers, Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20220209/9f18223b/attachment.sig>


More information about the users mailing list