[m-users.] "operator precedence error" - Mercury bug?
Volker Wysk
post at volker-wysk.de
Sat Oct 12 17:51:18 AEDT 2019
Hi
This simple module won't compile:
:- module test1.
:- interface.
:- import_module char.
:- pred f(char::in) is semidet.
:- implementation.
f(A) :-
A = '/'.
I get this error message:
make -k test1
mmc -E --make --output-compile-error-lines=200 "test1" --ml posix
** Error making `Mercury/int3s/test1.int3'.
test1.m:009: Syntax error at token '/': operator precedence error.
Makefile:2: recipe for target 'test1' failed
make: *** [test1] Error 1
The error does NOT occur when you substitute the '/' for something
different, for instance 'x'. To me this looks like a Mercury bug.
Bye
Volker
More information about the users
mailing list