You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks as if the problem is in lambdalift but I didn't really spend much time on it.
Crash:
error: symbol value qual$1$1 does not exist in Test.Sample
error:whilecompiling: crasher.scala
current phase: icode
library version: version 2.10.0-20120428-232041-e6d5d22d28
compiler version: version 2.10.0-20120428-232041-e6d5d22d28
reconstructed args: -d /tmp
uncaught exception during compilation: scala.reflect.internal.FatalError
error: scala.reflect.internal.FatalError:whilecompiling: crasher.scala
current phase: icode
library version: version 2.10.0-20120428-232041-e6d5d22d28
compiler version: version 2.10.0-20120428-232041-e6d5d22d28
reconstructed args: -d /tmp
symbol value qual$1$1 does not exist in Test.Sample
at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:45)
at scala.tools.nsc.Global.abort(Global.scala:202)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase.liftedTree2$1(GenICode.scala:998)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:992)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$genLoadArguments$1.apply(GenICode.scala:1201)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$genLoadArguments$1.apply(GenICode.scala:1199)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111)
at scala.collection.immutable.List.foldLeft(List.scala:77)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase.genLoadArguments(GenICode.scala:1199)
The text was updated successfully, but these errors were encountered:
@som-snytt said:
FWIW, I'm looking at similar #5720, which seems to turn on interaction between the owner of synthetic symbols and lambda lifting. (I think that has been seen before.)
Stuff$1 added in typers is wrapped in anonfuns in uncurry; I think the stuff$ wants to be owned by the anonfun.
I added a small ChangeOwner at uncurry (in transformFunction where the body is made) which made both bug examples compile, but it isn't quite correct enough yet (for nested anonfuns, I think).
I could be off-base, since I only just learned how all the parts work -- lambda lifter, default args, etc, all interesting stuff$. Thanks to everyone: it reads like a good novel, with spell-binding plot twists.
There were a couple of bugs with similar error msgs, but I don't think this is a duplicate.
To reproduce (recent trunk, M3, 2.9.2):
Looks as if the problem is in lambdalift but I didn't really spend much time on it.
Crash:
The text was updated successfully, but these errors were encountered: