[m-users.] Weird compilation error
Volker Wysk
post at volker-wysk.de
Tue Sep 29 03:27:54 AEST 2026
Hi.
I've found something out. When "-O 6" is present in the call to mmc, the
problem occurs. When I remove it, it disappears. The program compiles...
Volker
Am Montag, dem 28.09.2026 um 13:36 +0200 schrieb Volker Wysk:
> Hello.
> Suddenly I get a weird error when compiling Mfwpar. It says, for all my
> four require_tail_recursion pragmas, that the predicate isn't recursive at
> all. That's not true and it worked before. Here's the error message for
> the first one:
> ...
> mfwpar.m:859: Error in `:- pragma require_tail_recursion' for predicate
> `master_loop_normal'/12:
> mfwpar.m:859: the code defining this predicate contains no recursive
> calls at all, tail-recursive or otherwise.
> ...
> ** Error making `Mercury/cs/mfwpar.c'.
>
> And mfwpar.c is created. You can compile again and the error message won't
> occur. An executable is created.
> I've attached the code for master_loop_normal. There's a recursive call
> near the end. Could someone please have a look at it? I'm using MMC
> version rotd-2026-08-06. I've tried with rotd-2026-02-28, and it's the
> same.
> Cheers,
> Volker
> P.S.: I've written this message in Markdown. I hope your email programs
> support that.
> _______________________________________________
> users mailing list
> users at lists.mercurylang.org
> https://lists.mercurylang.org/listinfo/users
More information about the users
mailing list