-
Notifications
You must be signed in to change notification settings - Fork 1.1k
dotty compilation stackoverflow for huge number of cases classes #1257
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
Suggestion: try to split the list to find out which mini=phase causes the stack overflow. E.g.
|
Thanks @odersky for the tip, I self-assigned the issue and will look into it once I'm done with the patmat check. |
The patmat may be generating a very deep tree in this case. |
As @DarkDimius commented, |
When I try to compile following file, dotty generates stackoverflow:
https://github.com/scala/scala/blob/2.12.x/test/files/neg/patmatexhaust-huge.scala
Stackoverflow happens after patmat and before erasure, one of following transform is dubious:
The text was updated successfully, but these errors were encountered: