scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

specialization assertionerror on overloaded apply in breeze's DenseVector #9578

Open scabug opened 9 years ago

scabug commented 9 years ago

See https://groups.google.com/forum/m/#!topic/scala-internals/gnvcWsmAPaY:

class Test {
  def foo = {
// workaround: val dv: QuasiTensor[Int,Int] = DenseVector[Int]() // QuasiTensor does not have overloaded apply
   val dv = breeze.linalg.DenseVector[Int]()
   dv.apply(0) // java.lang.AssertionError: assertion failed: List(method apply$mcI$sp, method apply$mcI$sp)
  }
}

fails with breeze 0.11.x and 0.12-SNAPSHOT (the latter was compiled with 2.11.7, afaict)

scabug commented 9 years ago

Imported From: https://issues.scala-lang.org/browse/SI-9578?orig=1 Reporter: @adriaanm Affected Versions: 2.10.5, 2.11.7

scabug commented 9 years ago

@adriaanm said: Vaguely related to #9089, but as this was fixed in 2.11.5 and the problem still occurs with breeze compiled with 2.11.7, i conclude it's a separate issue.