-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Infinite recursion in TailRec #1603
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
Comments
I don't think that making tailrec have less guards would be a proper way to resolve this. It would be better to find how this irregular Apply node was created in first place. Did you try running with |
No, so far I could only reproduce this by compiling the entirety of scalatest, and I don't really have an idea on how to reduce the search space... |
@OlivierBlanvillain, you should still be able to run under "-Ycheck:firstTransform" and see if |
I minimized this issue in #1687. Turns out it was not an infinite recursion but just a very large code explosion which looked infinite thought |
The
TailRec
phase goes into an infinit loop when processing atree: Apply
such thattree.symbol != tree.fun
. This is the loop I observed withjstack
:Unfortunately I don't see how I could derive a minimized test case from the very large scalatest code base, if someone has an idea on how to pinpoint the issue in source please let me know!
The text was updated successfully, but these errors were encountered: