Skip to content

Internal compiler error "Impossible: LambdaStatSem.APP.argument type not arrow" when compiling MLton with MLKit #97

@MatthewFluet

Description

@MatthewFluet

I get an internal compiler error (Impossible: LambdaStatSem.APP.argument type not arrow) when compiling the current MLton sources (which recently added preliminary support for building with MLKit) with MLKit 4.6.0 (and also some other previous versions that I tried):

$ git clone https://github.com/MLton/mlton.git 
$ cd mlton/mlton
$ make mlkit-mlton
...
[reading source file:   ../lib/mlton/basic/random.sig]
[reading source file:   ../lib/mlton/basic/random.sml]
Impossible: LambdaStatSem.APP.argument type not arrow

rand a
...

I attach the full error message (make.mlkit-mlton.log). I didn't have much luck minimizing the random.sml file and its dependencies to produce a smaller example. In particular, the ICE didn't occur when I eliminated the use of the Trace.trace{,0} functions in random.sml.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions