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

Fix control flow loop in yield expression #25228

Merged
merged 2 commits into from Jun 26, 2018

Conversation

sandersn
Copy link
Member

Yet again, the fix is to stop using checkExpressionCached. As before, I don't know how to fix checkExpressionCached to not cause these infinite recursions.

Fixes #25149

@sandersn sandersn requested a review from weswigham June 26, 2018 16:35
Copy link
Member

@weswigham weswigham left a comment

Choose a reason for hiding this comment

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

We could set a global checker bit on entry into getFlowTypeOfReference that causes checkExpressionCached to either throw or quietly not cache. I mean, flowLoopStart already exists, we're just using it to signal resetting flow control (which is what causes the problem), rather than proceeding without a cache - it seems like simply that the concept of caching results during flow control is inherently unstable?

In any case, this is OK.

@sandersn sandersn merged commit 9025bc7 into master Jun 26, 2018
@sandersn sandersn deleted the fix-control-flow-loop-in-yield-expr branch June 26, 2018 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler error: Maximum call stack size exceeded
2 participants