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

java.lang.StackOverflowError during simple macro expansion #7887

Closed
scabug opened this issue Oct 1, 2013 · 2 comments
Closed

java.lang.StackOverflowError during simple macro expansion #7887

scabug opened this issue Oct 1, 2013 · 2 comments
Assignees

Comments

@scabug
Copy link

scabug commented Oct 1, 2013

{code}Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_40).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scala.language.experimental.macros
import scala.language.experimental.macros

scala> import scala.reflect.macros.Context
import scala.reflect.macros.Context

scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._

scala> def oneM(c:Context)(v:c.Expr[Int]):c.Expr[Int]= v
oneM: (c: scala.reflect.macros.Context)(v: c.Expr[Int])c.Expr[Int]

scala> def one(v:Int) = macro oneM
one: (v: Int)Int

scala> reify{one(1)}
:15: error: exception during macro expansion: java.lang.StackOverflowError
reify{one(1)}
{code}

@scabug
Copy link
Author

scabug commented Oct 1, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7887?orig=1
Reporter: @DarkDimius
Affected Versions: 2.10.2, 2.10.3

@scabug
Copy link
Author

scabug commented Dec 11, 2013

@xeno-by said:
#6115

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