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

Macro expansion throws a RuntimeException during the tail call elimination phase #7829

Closed
scabug opened this issue Sep 10, 2013 · 2 comments
Closed

Comments

@scabug
Copy link

scabug commented Sep 10, 2013

Using quasiquotes it is possible to construct values of the form Some(alias @ x), e.g., by trying to form a tree for a value based on a pattern.

When compiling a program which uses such a macro the compiler crashes due to an uncaught exception: java.lang.RuntimeException: We should've never gotten inside a pattern.

If the code snippet above is valid Scala code, this error shouldn't happen. If the code is not valid, the programmer should not be able to construct it using a quasiquote.

@scabug
Copy link
Author

scabug commented Sep 10, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7829?orig=1
Reporter: Martin Zuber (mzuber)
Affected Versions: 2.10.2
Attachments:

  • trace.txt (created on Sep 10, 2013 1:34:41 PM UTC, 163400 bytes)

@SethTisue
Copy link
Member

closing all quasiquotes tickets; see #10755

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

3 participants