Skip to content

Fix flow analysis of extern local functions - #79741

Merged
jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:79437-extern-out
Aug 11, 2025
Merged

jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:79437-extern-out

Conversation

@jjonescz

@jjonescz jjonescz commented Aug 1, 2025

Copy link
Copy Markdown
Member

Fixes #79437.

The problem was that each local function starts in unreachable state and extern local functions are never visited, hence the local function call also ends up marked as unreachable and so no definite assignment errors are reported.

@jjonescz
jjonescz marked this pull request as ready for review August 1, 2025 20:27
@jjonescz
jjonescz requested a review from a team as a code owner August 1, 2025 20:27
@jjonescz
jjonescz requested a review from a team August 6, 2025 10:34
@jjonescz
jjonescz enabled auto-merge (squash) August 11, 2025 09:31
@jjonescz
jjonescz disabled auto-merge August 11, 2025 10:59
@jjonescz
jjonescz merged commit 84baa35 into dotnet:main Aug 11, 2025
@jjonescz
jjonescz deleted the 79437-extern-out branch August 11, 2025 10:59
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Aug 11, 2025
333fred added a commit to 333fred/roslyn that referenced this pull request Aug 13, 2025
* upstream/main: (87 commits)
  Fix ref safety of implicit calls that might capture refs in the receiver (dotnet#76657)
  Update dependencies from https://github.com/dotnet/dotnet build 278961 Updated Dependencies: System.CommandLine (Version 2.0.0-rc.1.25410.101 -> 2.0.0-rc.1.25411.109)
  Update checklist for adding new language version (dotnet#79881)
  Skip ValidateAllOptions flaky test
  Don't try to load file based projects unless we get a .cs file (dotnet#79844)
  Update package restore error message.
  [main] Source code updates from dotnet/dotnet (dotnet#79862)
  Fix failure to report integration test results when retrying Also fix newly failing tests
  feedback
  More semantic update changes (dotnet#79828)
  Fix flow analysis of extern local functions (dotnet#79741)
  Allow using `/main` with top-level statements (dotnet#79577)
  Delete
  Async
  JTF.run
  Delete comment
  Delete code
  Cancel in flight work
  Simplify
  Fix race condition
  ...
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CS0177 is not reported on method with unassigned out parameter when calling extern local function

3 participants