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
Mismatch in stack heights #8330
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8330?orig=1 |
@magarciaEPFL said: |
@gkossakowski said (edited on Feb 23, 2014 10:30:12 PM UTC): Do you keep the new backend up-to-date with master? |
@magarciaEPFL said: It would help if Jira had separate components for old and new (bytecode emitter, optimizer) as a better means to track those bugs, rather than me pasting notes-to-self of the form "the new backend doesn't exhibit this bug". |
@retronym said: |
@gkossakowski said: class A {
def f: Boolean = {
try {
val x = 12
()
} catch {
case ex: Exception => null
}
true
}
} |
@gkossakowski said: object A {
def f(b: Boolean): Boolean = {
if (b) {
val x = 12
()
} else null
true
}
def main(args: Array[String]): Unit = f(true)
} results in VerifyError: java.lang.VerifyError: (class: A$, method: f signature: (Z)Z) Inconsistent stack height 1 != 0
at A.main(t8330.scala) The fix is coming shortly. |
This used to compile in 2.10.3:
but doesn't with current master:
We regressed in 9506d5273b4b10037c202f01e8556076998bd064.
The text was updated successfully, but these errors were encountered: