[m-rev.] Another compiler bug

Volker Wysk post at volker-wysk.de
Mon Aug 7 21:47:01 AEST 2023


Hi.

This program fails to compile:


:- module inst.

:- interface.
:- import_module io.

:- pred main(io::di, io::uo) is det.

:- implementation.

main(!IO).


The compiler says:

desktop ~/src/fis/test $ mmc --make inst
** Error making `Mercury/int3s/inst.int3'.
inst.m:001: Error: module must start with a `:- module' declaration.


When I rename the module to "inst1", then it works.

Maybe it's something stupid, but then the error message is bad.


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/reviews/attachments/20230807/3c6cb9cd/attachment.sig>


More information about the reviews mailing list