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

inference: bail from const-prop if const-prop fails #42112

Merged
merged 1 commit into from
Sep 8, 2021
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Sep 3, 2021

Otherwise we can can end up in an infinite cycle of attempting
const-prop, and that failing. Also handle Varargs in method-lookup
matching, which was the cause for which we could not compute the
const-prop signature.

Fixes #42097

@vtjnash vtjnash added bugfix This change fixes an existing bug compiler:inference Type inference backport 1.6 Change should be backported to release-1.6 backport 1.7 labels Sep 3, 2021
@vtjnash vtjnash requested a review from aviatesk September 3, 2021 18:21
Copy link
Member

@aviatesk aviatesk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid.

@aviatesk aviatesk added merge me PR is reviewed. Merge when all tests are passing and removed merge me PR is reviewed. Merge when all tests are passing labels Sep 4, 2021
@aviatesk
Copy link
Member

aviatesk commented Sep 4, 2021

Oh, still needs rebase to take in the changes of #42082 : frame = InferenceState(inf_result, #=cache=#:local, interp)

Otherwise we can can end up in an infinite cycle of attempting
const-prop, and that failing. Also handle Varargs in method-lookup
matching, which was the cause for which we could not compute the
const-prop signature.

Fixes #42097
@aviatesk aviatesk added the merge me PR is reviewed. Merge when all tests are passing label Sep 8, 2021
@aviatesk aviatesk merged commit 3a4198e into master Sep 8, 2021
@aviatesk aviatesk deleted the jn/42097 branch September 8, 2021 06:32
KristofferC pushed a commit that referenced this pull request Sep 8, 2021
Otherwise we can end up in an infinite cycle of attempting
const-prop, and that failing. Also handle `Varargs` in method-lookup
matching, which was the cause for which we could not compute the
const-prop signature.

Fixes #42097

(cherry picked from commit 3a4198e)
KristofferC pushed a commit that referenced this pull request Sep 8, 2021
Otherwise we can end up in an infinite cycle of attempting
const-prop, and that failing. Also handle `Varargs` in method-lookup
matching, which was the cause for which we could not compute the
const-prop signature.

Fixes #42097

(cherry picked from commit 3a4198e)
aviatesk pushed a commit that referenced this pull request Sep 9, 2021
Otherwise we can end up in an infinite cycle of attempting
const-prop, and that failing. Also handle `Varargs` in method-lookup
matching, which was the cause for which we could not compute the
const-prop signature.

Fixes #42097

cherry-picked from 3a4198e
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Sep 9, 2021
@KristofferC KristofferC mentioned this pull request Nov 19, 2021
29 tasks
@KristofferC KristofferC mentioned this pull request Jan 10, 2022
50 tasks
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
Otherwise we can end up in an infinite cycle of attempting
const-prop, and that failing. Also handle `Varargs` in method-lookup
matching, which was the cause for which we could not compute the
const-prop signature.

Fixes JuliaLang#42097
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
Otherwise we can end up in an infinite cycle of attempting
const-prop, and that failing. Also handle `Varargs` in method-lookup
matching, which was the cause for which we could not compute the
const-prop signature.

Fixes JuliaLang#42097
@KristofferC
Copy link
Member

Needs a manual backport against backports-release-1.6.

@KristofferC KristofferC mentioned this pull request May 16, 2022
45 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.6 Change should be backported to release-1.6 bugfix This change fixes an existing bug compiler:inference Type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.7-beta4: Internal error: encountered unexpected error in runtime
4 participants