On 22/09/2015 19:00, Phil Clayton wrote:
After integrating the new Finalizable module in a library, I am getting an internal error from the compiler:
Exception- InternalError: AllocStore found but last allocation not complete raised while compiling
Thanks for reporting this and cutting it down to a suitable example. I've tracked down the problem and committed a fix.
As a shameless plug for the newly updated debugger, I used that to set a breakpoint on the exception and then it was easy to see what was going on. The new debugger is a great deal faster than the old version so it's perfectly feasible to build the whole compiler with debugging enabled.
One other point, when trying to cut examples down to the smallest case that demonstrates a bug, it's worth playing with PolyML.Compiler.maxInlineSize. It's often the case that a bug only shows up when an example is large enough that it isn't inlined so setting this to something small, e.g. 1, may allow more of the surrounding code to be pruned away.
David