Hi all,
Trying to compile this short sample:
fun fact {n: nat} .<n>. (x: int n): int =
if x > 0
then x * fact (x - 1)
else 1
I get these errors (shortened version of the full output, for readability):
[…] In function ‘fact_0’:
[…] ‘PMVtmpltcstmat’ undeclared (first use in this function)
[…] ‘gt_g1int_int’ undeclared (first use in this function)
[…] expected expression before ‘atstype_int’
[…] expected expression before ‘)’ token
[…] ‘g1int_sub’ undeclared (first use in this function)
[…] expected expression before ‘atstype_int’
[…] expected expression before ‘)’ token
[…] ‘g0int_mul’ undeclared (first use in this function)
[…] expected expression before ‘atstype_int’
[…] expected expression before ‘)’ token
There are errors looking like syntax errors to the C compiler (which is GCC), which in turn makes me suppose it may be due to missing macro(s) (I don't like C macros, and this kind of errors is one of the reason why).
May be I need to add a `-Dxxx` option to the command line when invoking `patscc`, but which one? Or is this another kind of issue?