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

Compiler crash with -Yrangepos ("Synthetic tree ... contains nonsynthetic tree" #10095

Closed
scabug opened this issue Dec 6, 2016 · 2 comments
Closed

Comments

@scabug
Copy link

scabug commented Dec 6, 2016

Repro is here: https://github.com/ryan-williams/magic-rdds/tree/scalac-bug.

git clone
sbt ++2.10.6 clean compile

You'll see a compiler crash like this:

[error] uncaught exception during compilation: scala.tools.nsc.interactive.RangePositions$ValidateException
scala.tools.nsc.interactive.RangePositions$ValidateException: Synthetic tree [22450] contains nonsynthetic tree [22449]
	at scala.tools.nsc.interactive.RangePositions$class.positionError$1(RangePositions.scala:201)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:218)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
	at scala.tools.nsc.interactive.RangePositions$class.validate$1(RangePositions.scala:241)
…

More discussion can be found here.

@scabug
Copy link
Author

scabug commented Dec 6, 2016

Imported From: https://issues.scala-lang.org/browse/SI-10095?orig=1
Reporter: Ryan Williams (rdub)
Affected Versions: 2.10.6

@scabug
Copy link
Author

scabug commented Jan 10, 2017

@SethTisue said (edited on Jan 10, 2017 1:52:18 AM UTC):
presumably a duplicate of #8510, unless you can show it's reproducible in a recent 2.11.x or 2.12.x release

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

1 participant