Skip to content
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

Crash in compiler on incorrect code #8763

Closed
scabug opened this issue Jul 31, 2014 · 2 comments
Closed

Crash in compiler on incorrect code #8763

scabug opened this issue Jul 31, 2014 · 2 comments

Comments

@scabug
Copy link

scabug commented Jul 31, 2014

import collection.mutable

object Foo {
  def bar() {
    val names_times = mutable.Map[String, mutable.Set[Long]]()
    val line = ""
    val Array(fields) = line.split("\t")
    names_times(fields(0)) += fields(1).toLong
  }
}

Try to compile and you get a compiler crash.

@scabug
Copy link
Author

scabug commented Jul 31, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8763?orig=1
Reporter: Ben Wing (benwing)
Affected Versions: 2.10.4, 2.11.2
Attachments:

  • testbug.out (created on Jul 31, 2014 1:15:19 AM UTC, 10462 bytes)
  • testbug.scala (created on Jul 31, 2014 1:15:19 AM UTC, 230 bytes)

@scabug
Copy link
Author

scabug commented Jul 14, 2016

@som-snytt said (edited on Oct 26, 2016 8:13:20 AM UTC):
In related PR for 2.11.x scala/scala#5454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants