Closed djipi closed 2 weeks ago
Can you provide a source example with command line options?
This is the line options.
I was able to narrow the problem in the source, but got warnings and decided to keep them. There are not impacting the error. cmd.zip
I have fixed this issue for the next release that is not so far away.
The problem is in the inliner if it encounters a function with a single return
statement that contains a reference to a static variable that is not otherwise used in the function it is inlined in. Which is exactly what you have in the example.
You can temporarily use --no-inline
to disable the inliner or lower optimization level.
Fixed in release 5.7
When compiling with --speed -O2 arguments, got the following problem. internal error: Translator\Compiler\IL\Variable.hs:(102,1)-(103,51): Non-exhaustive patterns in function lookupVariable
The error will occur with only -O2 too. The work around to avoid the error, it is to use only --speed