New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during phase patmat (scala.tools.nsc.typechecker.PatternMatching$Logic$And.equals) #6726
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6726?orig=1
|
@hubertp said: object bugGenerator {
def main(args: Array[String]) {
println("trait Foo{")
println("abstract class Base")
val max = 2000
for (x <- Range(0, max)) println("case class Dummy" + x + "(x: Int) extends Base")
println("def test(y: Base) = y match {")
for (x <- Range(0, max)) println(" case Dummy" + x + "(p) => p")
println("}\n}")
}
} starts crashing somewhere between 1000 and 2000, even with "-Dscalac.patmat.analysisBudget=off" (apart from the fact that it takes long to compile). |
@hubertp said: |
@adriaanm said (edited on Nov 28, 2012 9:26:19 AM UTC): |
@hubertp said: |
@retronym said: |
@retronym said: |
@adriaanm said: |
@adriaanm said: |
I am having problems with 2.10-RC2 for this match
Code: https://gist.github.com/8995c2131c5d3e49c629
It compiles fine with 2.9.2.
On eclipse I get a StackOverflow error that suggests me to close the workbench.
On the command line output the compiler shows an error during phase patmat (scala.tools.nsc.typechecker.PatternMatching$Logic$And.equals)
Output: https://gist.github.com/ae82deae3b906a8e8b89
Paul Phillips figured out the problem: the 324 case was there twice. However the compiler should not crash because of this. But it should not compile (also a bug in 2.9.x I guess).
The text was updated successfully, but these errors were encountered: