Closed Sciss closed 8 years ago
That's a new one, a use-def analysis fails to account for something. Thanks for the report!
I have a project that enounters the the same problem here, I suspect use-def is failing to account for function pointers.
@Milyardo Scala Native + OpenGL, looks exciting. 👍
Minimal reproduction of the bug:
import scalanative.native._
object Test {
var foo = 1
var funptr: FunctionPtr0[Unit] = { () =>
foo
()
}
def main(args: Array[String]): Unit = ()
}
The following test-case produces this exception when running (
sbt clean run
): https://github.com/Sciss/scala-native-test/tree/scala-native-issue-207Stack trace: