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 problems caused by hidden sequence point when a switch expression is a closure scope #38182

Closed
wants to merge 2 commits into from

Conversation

gafter
Copy link
Member

@gafter gafter commented Aug 21, 2019

Trial approach to fixing problems caused by hidden sequence point when a switch expression is a closure scope. I've added a failing test to demonstrate that this approach is not quite correct.

…ion instruction in expression context

Fixes dotnet#37237

Compiler emits incorrect EnC closure data to PDB for nested switch expressions
Fixes dotnet#37232

Expression bodied method whose expression is a switch expression is missing debug info
Fixes dotnet#37261
@gafter gafter added Area-Compilers PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. labels Aug 21, 2019
@gafter gafter added this to the 16.4 milestone Aug 21, 2019
@gafter gafter requested a review from a team as a code owner August 21, 2019 19:39
@gafter gafter self-assigned this Aug 21, 2019
@gafter
Copy link
Member Author

gafter commented Aug 21, 2019

@tmat When you're back from vacation I'd love to consult with you about the proper way to handle this.

@JoeRobich JoeRobich closed this Aug 29, 2019
@JoeRobich
Copy link
Member

Sorry, I should have retargeted these PRs before removing that branch. Repushed branch and will reopen and retarget.

@JoeRobich JoeRobich reopened this Aug 29, 2019
@JoeRobich JoeRobich changed the base branch from release/dev16.4-preview1 to master August 29, 2019 23:20
@gafter gafter modified the milestones: 16.4, 16.5 Oct 29, 2019
@gafter gafter modified the milestones: 16.5, Compiler.Net5 Mar 14, 2020
@gafter gafter closed this Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment