-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 when secondary constructor has 3 or more implicit parameters #20483
Labels
Comments
kavedaa
added
itype:bug
itype:crash
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
May 27, 2024
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
May 28, 2024
AddImplicitArgs can recursively add several implicit parameter lists. We need to make sure we don't perform a thisCallContext search in another thisCall context in this case. Fixes scala#20483 The original code would back out further and further in the context chain for every implicit parameter section on the secondary constructor. Eventually (in this case after 3 times) bad things happen.
Interesting puzzler! |
Gedochao
added
area:typer
area:implicits
related to implicits
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Jun 3, 2024
odersky
added a commit
that referenced
this issue
Jun 10, 2024
AddImplicitArgs can recursively add several implicit parameter lists. We need to make sure we don't perform a thisCallContext search in another thisCall context in this case. Fixes #20483 The original code would back out further and further in the context chain for every implicit parameter section on the secondary constructor. Eventually (in this case after 2 times) bad things happen.
WojciechMazur
pushed a commit
to WojciechMazur/dotty
that referenced
this issue
Jun 19, 2024
AddImplicitArgs can recursively add several implicit parameter lists. We need to make sure we don't perform a thisCallContext search in another thisCall context in this case. Fixes scala#20483 The original code would back out further and further in the context chain for every implicit parameter section on the secondary constructor. Eventually (in this case after 3 times) bad things happen.
WojciechMazur
pushed a commit
that referenced
this issue
Jun 20, 2024
AddImplicitArgs can recursively add several implicit parameter lists. We need to make sure we don't perform a thisCallContext search in another thisCall context in this case. Fixes #20483 The original code would back out further and further in the context chain for every implicit parameter section on the secondary constructor. Eventually (in this case after 3 times) bad things happen.
WojciechMazur
added a commit
that referenced
this issue
Jul 8, 2024
AddImplicitArgs can recursively add several implicit parameter lists. We need to make sure we don't perform a thisCallContext search in another thisCall context in this case. Fixes #20483 The original code would back out further and further in the context chain for every implicit parameter section on the secondary constructor. Eventually (in this case after 3 times) bad things happen. [Cherry-picked 2e4a070][modified]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.4.1 and others
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: