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
Compiler crash on inlined function and -optimize option #6157
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6157?orig=1
|
@magarciaEPFL said (edited on Aug 6, 2012 2:44:56 PM UTC):
|
@magarciaEPFL said: Before inlining
After inlining
|
@magarciaEPFL said:
As a result we have inconsistent stack height on entry to 6. |
@magarciaEPFL said: |
@magarciaEPFL said: |
The optimizer crashes when compiling method calling other methods:
Try to compile the attached project (2 classes) using
sbt
and itscompile
command.The problem is new and does no occurs in scala 2.9.2
Look at the
build.sbt
for detailed compilation options.{noformat}
[error]
[error] while compiling: /home/ecastro/Bureau/inline-optim-bug/src/main/scala/bug/ErrorHandler.scala
[error] during phase: inliner
[error] library version: version 2.10.0-M6
[error] compiler version: version 2.10.0-M6
[error] reconstructed args: -Ydead-code -optimise -classpath /home/ecastro/Bureau/inline-optim-bug/target/scala-2.10.0-M6/classes -Yinline -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/netx.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/plugin.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/classes:/home/ecastro/.sbt/boot/scala-2.10.0-M6/lib/scala-library.jar -Yclosure-elim -d /home/ecastro/Bureau/inline-optim-bug/target/scala-2.10.0-M6/classes -Yinline-handlers
[error]
[error] last tree to typer: TypeTree(trait Seq)
[error] symbol: trait Seq in package collection (flags: abstract )
[error] symbol definition: abstract trait Seq extends PartialFunction with Iterable with GenSeq with GenericTraversableTemplate with SeqLike
[error] tpe: Seq
[error] symbol owners: trait Seq -> package collection
[error] context owners: object ErrorHandler -> package bug
[error]
[error] == Enclosing template or block ==
[error]
[error] Template( // val : in object ErrorHandler, tree.tpe=...
[error] "java.lang.Object" // parents
[error] ValDef(
[error] private
[error] "_"
[error]
[error]
[error] )
{noformat}etc.
The text was updated successfully, but these errors were encountered: